You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for this awesome project and to be ultra up-to-date with state-of-the-art technologies!!
I have some warnings with Webpack 5 in nestjs application.
Current Behavior
$ nx serve api
> nx run api:serve
> NX Using webpack 5. Reason: detected version 5 in node_modules/webpack/package.json
(node:33773) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument needs to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.
(node:33773) [DEP_WEBPACK_MODULE_ERRORS] DeprecationWarning: Module.errors was removed (use getErrors instead)
chunk (runtime: main) main.js (main) 2.77 KiB [entry] [rendered]
webpack compiled successfully (fa3539c4b1c182c0bef6)
Debugger listening on ws://localhost:9229/b7e40b37-69a7-4989-b6fe-6ffaffd355f1
Debugger listening on ws://localhost:9229/b7e40b37-69a7-4989-b6fe-6ffaffd355f1
For help, see: https://nodejs.org/en/docs/inspector
Issues checking in progress...
[Nest] 33775 - 2021-08-26 10:18:25 [NestFactory] Starting Nest application...
[Nest] 33775 - 2021-08-26 10:18:25 [InstanceLoader] AppModule dependencies initialized +11ms
[Nest] 33775 - 2021-08-26 10:18:25 [RoutesResolver] AppController {/api}: +3ms
[Nest] 33775 - 2021-08-26 10:18:25 [RouterExplorer] Mapped {/api, GET} route +2ms
[Nest] 33775 - 2021-08-26 10:18:25 [NestApplication] Nest application successfully started +1ms
[Nest] 33775 - 2021-08-26 10:18:25 Listening at http://localhost:3333/api +2ms
No issues found.
Expected Behavior
We should not have warnings:
(node:33773) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument needs to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.
(node:33773) [DEP_WEBPACK_MODULE_ERRORS] DeprecationWarning: Module.errors was removed (use getErrors instead)
Steps to Reproduce
npx create-nx-workspace --preset=nest
npx : 48 installé(s) en 3.283s
✔ Workspace name (e.g., org name) · NestTest
✔ Application name · api
✔ Use Nx Cloud? (It's free and doesn't require registration.) · No
cd nest-test/
npx nx g @nrwl/node:webpack5
nx serve api
Failure Logs
> nx run api:serve
> NX Using webpack 5. Reason: detected version 5 in node_modules/webpack/package.json
(node:33773) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument needs to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.
(node:33773) [DEP_WEBPACK_MODULE_ERRORS] DeprecationWarning: Module.errors was removed (use getErrors instead)
chunk (runtime: main) main.js (main) 2.77 KiB [entry] [rendered]
webpack compiled successfully (fa3539c4b1c182c0bef6)
Debugger listening on ws://localhost:9229/b7e40b37-69a7-4989-b6fe-6ffaffd355f1
Debugger listening on ws://localhost:9229/b7e40b37-69a7-4989-b6fe-6ffaffd355f1
For help, see: https://nodejs.org/en/docs/inspector
Issues checking in progress...
[Nest] 33775 - 2021-08-26 10:18:25 [NestFactory] Starting Nest application...
[Nest] 33775 - 2021-08-26 10:18:25 [InstanceLoader] AppModule dependencies initialized +11ms
[Nest] 33775 - 2021-08-26 10:18:25 [RoutesResolver] AppController {/api}: +3ms
[Nest] 33775 - 2021-08-26 10:18:25 [RouterExplorer] Mapped {/api, GET} route +2ms
[Nest] 33775 - 2021-08-26 10:18:25 [NestApplication] Nest application successfully started +1ms
[Nest] 33775 - 2021-08-26 10:18:25 Listening at http://localhost:3333/api +2ms
No issues found.
Environment
$ nx report
> NX Report complete - copy this into the issue template
Node : 12.21.0
OS : darwin x64
npm : 6.14.11
nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.8.0
@nrwl/cypress : Not Found
@nrwl/devkit : 12.8.0
@nrwl/eslint-plugin-nx : 12.8.0
@nrwl/express : Not Found
@nrwl/jest : 12.8.0
@nrwl/linter : 12.8.0
@nrwl/nest : 12.8.0
@nrwl/next : Not Found
@nrwl/node : 12.8.0
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.8.0
@nrwl/web : Not Found
@nrwl/workspace : 12.8.0
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.3.5
I also have this issue with in Linux.
Possible solution
For DEP_WEBPACK_WATCH_WITHOUT_CALLBACK it seems it is throw because we call webpack with --watch option with the config watch: true in the config. -> webpack/webpack-cli#1918
For DEP_WEBPACK_MODULE_ERRORS, it seems it is from ts-loader. I tried to upgraded to the latest ts-loader v9.2.5 but I still have the warning -> TypeStrong/ts-loader#1194
If you have any question or need any debug logs, feel free to ask ;)
Cheers
The text was updated successfully, but these errors were encountered:
> NX Report complete - copy this into the issue template
Node : 14.17.3
OS : darwin x64
npm : 6.14.13
nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.10.0
@nrwl/cypress : Not Found
@nrwl/devkit : 12.10.0
@nrwl/eslint-plugin-nx : 12.10.0
@nrwl/express : Not Found
@nrwl/jest : 12.10.0
@nrwl/linter : 12.10.0
@nrwl/nest : 12.10.0
@nrwl/next : Not Found
@nrwl/node : 12.10.0
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.10.0
@nrwl/web : Not Found
@nrwl/workspace : 12.10.0
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.4.4
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏
Hey,
thanks for this awesome project and to be ultra up-to-date with state-of-the-art technologies!!
I have some warnings with Webpack 5 in nestjs application.
Current Behavior
Expected Behavior
We should not have warnings:
Steps to Reproduce
Failure Logs
Environment
I also have this issue with in Linux.
Possible solution
For
DEP_WEBPACK_WATCH_WITHOUT_CALLBACK
it seems it is throw because we call webpack with--watch
option with the configwatch: true
in the config. -> webpack/webpack-cli#1918For
DEP_WEBPACK_MODULE_ERRORS
, it seems it is from ts-loader. I tried to upgraded to the latest ts-loader v9.2.5 but I still have the warning -> TypeStrong/ts-loader#1194If you have any question or need any debug logs, feel free to ask ;)
Cheers
The text was updated successfully, but these errors were encountered: