I'm using the last @nativescript/schematics version 0.1.3
After generating a new project like this:
ng new --collection=@nativescript/schematics --name=appium --routing=true --style=scss
I'm trying to build using:
tns run android --bundle
And I'm getting the following error:
/Users/israeldevs/Documents/projects/appium/node_modules/webpack/lib/webpack.js:165
throw new RemovedPluginError(errorMessage);
^
Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.
at Object.get [as CommonsChunkPlugin] (/Users/israeldevs/Documents/projects/appium/node_modules/webpack/lib/webpack.js:165:10)
at module.exports.env (/Users/israeldevs/Documents/projects/appium/webpack.config.js:92:34)
at handleFunction (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/prepareOptions.js:23:13)
at prepareOptions (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/prepareOptions.js:9:5)
at requireConfig (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/convert-argv.js:136:14)
at /Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/convert-argv.js:142:17
at Array.forEach ()
at module.exports (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/convert-argv.js:140:15)
at yargs.parse (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/webpack.js:240:39)
at Object.parse (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/node_modules/yargs/yargs.js:552:18)
at /Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/webpack.js:218:8
at Object. (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/webpack.js:515:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/Users/israeldevs/Documents/projects/appium/node_modules/webpack/bin/webpack.js:80:2)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
Executing webpack failed with exit code 1.
tns build android
==========
I'm using the last @nativescript/schematics version 0.1.3
After generating a new project like this:
ng new --collection=@nativescript/schematics --name=appium --routing=true --style=scss
I'm trying to build using:
tns run android --bundle
And I'm getting the following error:
/Users/israeldevs/Documents/projects/appium/node_modules/webpack/lib/webpack.js:165
throw new RemovedPluginError(errorMessage);
^
Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.
at Object.get [as CommonsChunkPlugin] (/Users/israeldevs/Documents/projects/appium/node_modules/webpack/lib/webpack.js:165:10)
at module.exports.env (/Users/israeldevs/Documents/projects/appium/webpack.config.js:92:34)
at handleFunction (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/prepareOptions.js:23:13)
at prepareOptions (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/prepareOptions.js:9:5)
at requireConfig (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/convert-argv.js:136:14)
at /Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/convert-argv.js:142:17
at Array.forEach ()
at module.exports (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/convert-argv.js:140:15)
at yargs.parse (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/webpack.js:240:39)
at Object.parse (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/node_modules/yargs/yargs.js:552:18)
at /Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/webpack.js:218:8
at Object. (/Users/israeldevs/Documents/projects/appium/node_modules/webpack-cli/bin/webpack.js:515:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/Users/israeldevs/Documents/projects/appium/node_modules/webpack/bin/webpack.js:80:2)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
Executing webpack failed with exit code 1.
tns build android
==========