Reputation: 61
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:
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:
Upvotes: 2
Views: 311