Enabling webpack gives an error


Hi everybody!

I’m trying to run the ‘Groceries’ sample application using webpack bundling on Android.
I just got the app starting point

tns create GroceriesOriginal --template nativescript-template-ng-groceries
cd GroceriesOriginal
tns run android

and it all works well!

Then I try to install and use webpack, so again

npm install --save-dev nativescript-dev-webpack
npm install
tns run android --bundle

but console gives me this error

> Running webpack for Android...
> ~/workspaces/nativescript/GroceriesOriginal/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:88
>         const config = ngtools_api_1.readConfiguration(this._tsConfigPath);
>                                      ^
> TypeError: ngtools_api_1.readConfiguration is not a function
>     at NativeScriptAngularCompilerPlugin._setupOptions [...]

How can I solve this?
Thank you!



I have the same issue. Any solution?

1 Like


Does your problem solved ??? @vahid.vdn