Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken axios types #90

Closed
jelleschutter opened this issue Oct 14, 2021 · 1 comment
Closed

broken axios types #90

jelleschutter opened this issue Oct 14, 2021 · 1 comment

Comments

@jelleschutter
Copy link
Owner

Axios update not possible due to changes to default types: #89

Links

Error Log

21:49:41.709	Initializing build environment. This may take up to a few minutes to complete
21:52:13.556	Success: Finished initializing build environment
21:52:13.556	Cloning repository...
21:52:15.024	Success: Finished cloning repository files
21:52:16.179	Installing dependencies
21:52:16.182	Python version set to 2.7
21:52:16.989	v12.18.0 is already installed.
21:52:17.525	Now using node v12.18.0 (npm v6.14.4)
21:52:17.570	Started restoring cached build plugins
21:52:17.574	Finished restoring cached build plugins
21:52:17.704	Attempting ruby version 2.7.1, read from environment
21:52:18.777	Using ruby version 2.7.1
21:52:19.054	Using PHP version 5.6
21:52:19.084	5.2 is already installed.
21:52:19.090	Using Swift version 5.2
21:52:19.090	Started restoring cached node modules
21:52:19.093	Finished restoring cached node modules
21:52:19.288	Installing NPM modules using NPM version 6.14.4
21:52:44.296	
21:52:44.296	> yorkie@2.0.0 install /opt/buildhome/repo/node_modules/yorkie
21:52:44.296	> node bin/install.js
21:52:44.296	
21:52:44.362	setting up Git hooks
21:52:44.367	done
21:52:44.367	
21:52:44.483	
21:52:44.483	> @fortawesome/fontawesome-common-types@0.2.36 postinstall /opt/buildhome/repo/node_modules/@fortawesome/fontawesome-common-types
21:52:44.483	> node attribution.js
21:52:44.483	
21:52:44.535	Font Awesome Free 0.2.36 by @fontawesome - https://fontawesome.com
21:52:44.535	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:44.535	
21:52:44.550	
21:52:44.550	> @fortawesome/fontawesome-common-types@0.2.36 postinstall /opt/buildhome/repo/node_modules/@fortawesome/free-brands-svg-icons/node_modules/@fortawesome/fontawesome-common-types
21:52:44.550	> node attribution.js
21:52:44.550	
21:52:44.600	Font Awesome Free 0.2.36 by @fontawesome - https://fontawesome.com
21:52:44.600	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:44.600	
21:52:44.614	
21:52:44.614	> @fortawesome/fontawesome-common-types@0.2.36 postinstall /opt/buildhome/repo/node_modules/@fortawesome/free-regular-svg-icons/node_modules/@fortawesome/fontawesome-common-types
21:52:44.614	> node attribution.js
21:52:44.614	
21:52:44.663	Font Awesome Free 0.2.36 by @fontawesome - https://fontawesome.com
21:52:44.664	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:44.664	
21:52:44.678	
21:52:44.678	> @fortawesome/fontawesome-common-types@0.2.36 postinstall /opt/buildhome/repo/node_modules/@fortawesome/free-solid-svg-icons/node_modules/@fortawesome/fontawesome-common-types
21:52:44.678	> node attribution.js
21:52:44.678	
21:52:44.727	Font Awesome Free 0.2.36 by @fontawesome - https://fontawesome.com
21:52:44.727	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:44.728	
21:52:44.790	
21:52:44.790	> core-js@2.6.12 postinstall /opt/buildhome/repo/node_modules/babel-runtime/node_modules/core-js
21:52:44.790	> node -e "try{require('./postinstall')}catch(e){}"
21:52:44.790	
21:52:44.845	�[96mThank you for using core-js (�[94m https://github.com/zloirock/core-js �[96m) for polyfilling JavaScript standard library!�[0m
21:52:44.845	
21:52:44.846	�[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: �[0m
21:52:44.846	�[96m>�[94m https://opencollective.com/core-js �[0m
21:52:44.847	�[96m>�[94m https://www.patreon.com/zloirock �[0m
21:52:44.847	
21:52:44.847	�[96mAlso, the author of core-js (�[94m https://github.com/zloirock �[96m) is looking for a good job -)�[0m
21:52:44.847	
21:52:44.886	
21:52:44.886	> core-js@3.18.3 postinstall /opt/buildhome/repo/node_modules/core-js
21:52:44.886	> node -e "try{require('./postinstall')}catch(e){}"
21:52:44.886	
21:52:44.941	�[96mThank you for using core-js (�[94m https://github.com/zloirock/core-js �[96m) for polyfilling JavaScript standard library!�[0m
21:52:44.941	
21:52:44.941	�[96mThe project needs your help! Please consider supporting of core-js:�[0m
21:52:44.941	�[96m>�[94m https://opencollective.com/core-js �[0m
21:52:44.941	�[96m>�[94m https://patreon.com/zloirock �[0m
21:52:44.941	�[96m>�[94m https://paypal.me/zloirock �[0m
21:52:44.941	�[96m>�[94m bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz �[0m
21:52:44.941	
21:52:44.941	�[96mAlso, the author of core-js (�[94m https://github.com/zloirock �[96m) is looking for a good job -)�[0m
21:52:44.941	
21:52:44.973	
21:52:44.973	> ejs@2.7.4 postinstall /opt/buildhome/repo/node_modules/ejs
21:52:44.973	> node ./postinstall.js
21:52:44.973	
21:52:45.026	Thank you for installing �[35mEJS�[0m: built with the �[32mJake�[0m JavaScript build tool (�[32mhttps://jakejs.com/�[0m)
21:52:45.026	
21:52:45.421	
21:52:45.421	> @fortawesome/fontawesome-svg-core@1.2.36 postinstall /opt/buildhome/repo/node_modules/@fortawesome/fontawesome-svg-core
21:52:45.421	> node attribution.js
21:52:45.421	
21:52:45.472	Font Awesome Free 1.2.36 by @fontawesome - https://fontawesome.com
21:52:45.472	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:45.472	
21:52:45.486	
21:52:45.486	> @fortawesome/free-brands-svg-icons@5.15.4 postinstall /opt/buildhome/repo/node_modules/@fortawesome/free-brands-svg-icons
21:52:45.486	> node attribution.js
21:52:45.486	
21:52:45.536	Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
21:52:45.536	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:45.536	
21:52:45.550	
21:52:45.550	> @fortawesome/free-regular-svg-icons@5.15.4 postinstall /opt/buildhome/repo/node_modules/@fortawesome/free-regular-svg-icons
21:52:45.550	> node attribution.js
21:52:45.550	
21:52:45.601	Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
21:52:45.601	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:45.601	
21:52:45.614	
21:52:45.614	> @fortawesome/free-solid-svg-icons@5.15.4 postinstall /opt/buildhome/repo/node_modules/@fortawesome/free-solid-svg-icons
21:52:45.614	> node attribution.js
21:52:45.614	
21:52:45.663	Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
21:52:45.663	License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
21:52:45.663	
21:52:46.898	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
21:52:46.898	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
21:52:46.898	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
21:52:46.898	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
21:52:46.900	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
21:52:46.900	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
21:52:46.900	
21:52:46.906	added 1633 packages from 746 contributors and audited 1640 packages in 26.919s
21:52:47.896	
21:52:47.896	120 packages are looking for funding
21:52:47.896	  run `npm fund` for details
21:52:47.896	
21:52:47.897	found 51 vulnerabilities (27 moderate, 24 high)
21:52:47.897	  run `npm audit fix` to fix them, or `npm audit` for details
21:52:47.923	NPM modules installed
21:52:48.204	Installing Hugo 0.54.0
21:52:48.745	Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
21:52:48.747	Started restoring cached go cache
21:52:48.751	Finished restoring cached go cache
21:52:48.778	go version go1.14.4 linux/amd64
21:52:48.783	go version go1.14.4 linux/amd64
21:52:48.784	Installing missing commands
21:52:48.784	Verify run directory
21:52:48.784	Executing user command: npm run build
21:52:49.037	
21:52:49.037	> jelleschutter.github.io@0.1.0 build /opt/buildhome/repo
21:52:49.037	> vue-cli-service build
21:52:49.037	
21:52:49.728	
21:52:49.730	-  Building for production...
21:53:08.912	 ERROR  Failed to compile with 1 error7:53:08 PM
21:53:08.912	
21:53:08.912	 error  in src/components/RepositoryList.vue:35:13
21:53:08.912	
21:53:08.912	TS2345: Argument of type '(res: AxiosResponse<RepositoryModel[]>) => void' is not assignable to parameter of type '(value: AxiosResponse<unknown, any>) => void | PromiseLike<void>'.
21:53:08.912	  Types of parameters 'res' and 'value' are incompatible.
21:53:08.912	    Type 'AxiosResponse<unknown, any>' is not assignable to type 'AxiosResponse<Repository[], any>'.
21:53:08.912	      Type 'unknown' is not assignable to type 'Repository[]'.
21:53:08.912	    33 |
21:53:08.912	    34 |     axios(config)
21:53:08.912	  > 35 |       .then((res: AxiosResponse<RepositoryModel[]>) => {
21:53:08.912	       |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21:53:08.912	    36 |         repos.value = res.data;
21:53:08.912	    37 |       })
21:53:08.912	    38 |       .catch((error: Error) => {
21:53:08.912	
21:53:08.914	 ERROR  Build failed with errors.
21:53:08.953	npm ERR! code ELIFECYCLE
21:53:08.954	npm ERR! errno 1
21:53:08.955	npm ERR! jelleschutter.github.io@0.1.0 build: `vue-cli-service build`
21:53:08.955	npm ERR! Exit status 1
21:53:08.956	npm ERR! 
21:53:08.956	npm ERR! Failed at the jelleschutter.github.io@0.1.0 build script.
21:53:08.956	npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
21:53:08.961	
21:53:08.962	npm ERR! A complete log of this run can be found in:
21:53:08.962	npm ERR!     /opt/buildhome/.npm/_logs/2021-10-13T19_53_08_956Z-debug.log
21:53:08.968	Failed: build command exited with code: 1
@jelleschutter
Copy link
Owner Author

Fixed in #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant