Skip to content
This repository has been 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

Closed
sis0k0 opened this issue Sep 26, 2018 · 1 comment
Closed

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

sis0k0 opened this issue Sep 26, 2018 · 1 comment
Assignees

Comments

@sis0k0
Copy link
Contributor

sis0k0 commented Sep 26, 2018

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.

sis0k0 added a commit that referenced this issue Sep 26, 2018
@sis0k0 sis0k0 self-assigned this Sep 26, 2018
@sis0k0 sis0k0 added the bug label Sep 26, 2018
sis0k0 added a commit that referenced this issue Sep 26, 2018
sis0k0 added a commit that referenced this issue Sep 27, 2018
sis0k0 added a commit that referenced this issue Sep 27, 2018
sis0k0 added a commit that referenced this issue Sep 27, 2018
@sis0k0
Copy link
Contributor Author

sis0k0 commented Sep 28, 2018

resolved in 0.16.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant