I try to migrate to last NS version @nativescript/[email protected] with [email protected] and migrate my webpack.config.json to WebPack 5 is so difficult.
I try to migrate to [email protected] (11-4-2021) with @nativescript/[email protected] previous a new era with WP 5 but project fail with WP-cli:
[webpack-cli] Error: Unknown option '--env.hmr'
I try to create a HelloWorld project with:
- [email protected] (11-3-2021)
- Node 14.16.0 (23-2-2021)
- NPM 6.14.11
And the project generate a package.json with:
"dependencies": {
"@nativescript/core": "~8.1.1",
"devDependencies": {
"@nativescript/webpack": "~5.0.0",
And when i run the project fails with:
[webpack-cli] Error: Unknown option '--env.hmr'
[webpack-cli] Run 'webpack --help' to see available commands and options
Executing webpack failed with exit code 2.
When I expected a project to be created with:
- @nativescript/[email protected]" (27-2-2021)
- @nativescript/webpack@4