-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Latest NestJS CLI generated project cannot build due to webpack & Tapable type errors #6758
Comments
|
same issue.. |
Again, there's nothing nest can really do about this. The |
Hi! Thanks for the clarification @jmcdo29. Your comment took me to the After running Running The remaining errors come from the
I'm a little unfamiliar with |
It looks like new types that are included with both webpack and tapable are clashing with the versions provided by DefinitelyTyped.
Seems to fix the issue for me. So maybe just need to update the package.json template to not include them? |
Simply uninstalling those packages did not help for me. I ran into this problem today while setting up the typescript-starter project and trying out for the first time with NestJS (terrible timing, for a minute I thought NestJS was awful and I'd made a horrible mistake haha..eventually figured out its an upstream issue and totally not NestJS fault). In any case, for me I managed to work around this issue by doing the following in the https://github.com/nestjs/typescript-starter project:
I'm now at least able to start Nest and start playing around with it, but beware anyone that uses this workaround; given I literally took my first look at NestJS today, this was brute-force solved via trial and error, and I might've missed something important. |
It works for me. |
It worked with these versions for me
|
It works for me |
Bug Report
Something has broken while preparing for production deployment. Due to other reasons, I had to delete my yarn lock file and I started getting error messages. It builds just fine in development, however, it displays over 90 errors of missing @types packages from @types/webpack and @types/tapable. This breaks the production build. I've tried reinstalling packages with npm and yarn, deleting node_modules, lock files, and also removing the yarn cache, all to no avail. I thought there was something wrong with my project so I created a new test project with the NestJS CLI and the latest version, still the same issue.
Current behavior
Below is the complete error message I receive in my console when running npm run build:
Input Code
Reproduce:
install the latest nestjs cli and creat a new project, CD into the folder and run
npm install && npm run build
Expected behavior
Should build fine without any type errors due to missing dependencies.
Possible Solution
Environment
The text was updated successfully, but these errors were encountered: