-
-
Notifications
You must be signed in to change notification settings - Fork 398
Cannot find module 'axios' in 9.3.0 #310
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
Comments
You could try using exact version and use previous release like this: |
Thx previous version works perfectly 👍
I guess that means latest version has a bug somewhere. I have not looked into the source code. Does anyone else have time to look into it? |
Isn't the problem in 9.3.0? Ever since I bumped up to 9.3.0 I found I must use node14 and I must add axios myself, otherwise I get failures. With node 12, some code now uses
Then if I use node14 or later:
I had neither of these problems with 9.2.0. The "npx" command in the original problem description is going to pull the latest which is 9.3.0 and not 9.2.0 so I think the title is wrong. |
@jeking3 The latest release is named 9.2.0 https://github.com/acacode/swagger-typescript-api/releases |
https://www.npmjs.com/package/swagger-typescript-api |
Linking to #294 as this seems pretty serious. |
@TommySorensen Some question in Your global Angular CLI version (12.2.8) is greater than your local version (12.2.2). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
An unhandled exception occurred: Cannot find module 'axios'
Require stack:
- /Users/cipchk/Desktop/work/ng-alain/node_modules/swagger-typescript-api/src/swagger.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/swagger-typescript-api/src/index.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/ng-alain/sta/index.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/@angular-devkit/schematics/tools/index.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/@angular/cli/utilities/json-schema.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/@angular/cli/models/command-runner.js
- /Users/cipchk/Desktop/work/ng-alain/node_modules/@angular/cli/lib/cli/index.js
- /Users/cipchk/.config/yarn/global/node_modules/@angular/cli/lib/init.js
- /Users/cipchk/.config/yarn/global/node_modules/@angular/cli/bin/ng
See "/private/var/folders/gq/9pcvzdt577729qn7763c26hm0000gp/T/ng-tghXXY/angular-errors.log" for further details. We are using Http request through custom template under Angular, I don’t think axios must be installed. |
will be fixed in [email protected] |
fixed in 9.3.1 |
Hi all
I am using the
npx swagger-typescript-api
like below to generate our types. Recently this has stopped working because of the script can't find the Axios package.Console output:
Any help is appreciated.
The text was updated successfully, but these errors were encountered: