Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Build fails with webpack-cli 2.1.1 and webpack 4.20.2 #674

@sis0k0

Description

@sis0k0

The webpack build fails when webpack-cli 2.1.1 and webpack 4.20.2 are installed.
Stack trace:

/Users/.../node_modules/webpack-cli/bin/config-yargs.js:89
                describe: optionsSchema.definitions.output.properties.path.description,
                                                           ^

TypeError: Cannot read property ‘properties’ of undefined
   at module.exports (/Users/.../node_modules/webpack-cli/bin/config-yargs.js:89:48)
   at /Users/.../node_modules/webpack-cli/bin/webpack.js:60:27
   at Object.<anonymous> (/Users/.../node_modules/webpack-cli/bin/webpack.js:515:3)
   at Module._compile (module.js:653:30)
   at Object.Module._extensions..js (module.js:664:10)
   at Module.load (module.js:566:32)
   at tryModuleLoad (module.js:506:12)
   at Function.Module._load (module.js:498:3)
   at Module.require (module.js:597:17)

This affects {N}+Web code-sharing projects that depend on webpack 4.20.2 (brought by @angular-devkit/build-angular).
The other flavors of NativeScript projects are not affected, because they depend on older versions of webpack (brought by nativescript-dev-webpack).
The solution is to update the versions of both packages to latest - webpack-cli to 3.1.1 and webpack to 4.20.2.

related to webpack/webpack#8082, webpack/webpack-cli#607.

10x to @SvetoslavTsenov for reporting.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions