You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
CLI: 4.2.4
Please, attach your package.json and webpack.config.js as these configurations are usually critical for investigating issues with webpack
Copying template files...
Platform ios successfully added. v4.2.0
Executing before-shouldPrepare hook from /Users/Projects/abc/hooks/before-shouldPrepare/nativescript-dev-webpack.js
Executing before-prepare hook from /Users/Projects/abc/hooks/before-prepare/nativescript-dev-typescript.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from /Users/Projects/abc/hooks/before-prepare/nativescript-plugin-firebase.js
Preparing project...
Executing before-prepareJSApp hook from /Users/Projects/abc/hooks/before-prepareJSApp/nativescript-dev-webpack.js
Running webpack for ios...
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
Do you want to install 'webpack-cli' (yes/no): y
Installing 'webpack-cli' (running 'npm install -D webpack-cli')...
npm WARN [email protected] requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of tns-core-modules@^3.0.0 || ^3.0.0-rc.1 but none is installed. You must install peer dependencies yourself.
+ [email protected]
added 25 packages in 7.426s
{ Error: Cannot find module 'webpack-bundle-analyzer'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (/Users/Projects/abc/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/Users/Projects/abc/webpack.config.js:8:34)
at Module._compile (/Users/Projects/abc/node_modules/v8-compile-cache/v8-compile-cache.js:178: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 (/Users/Projects/abc/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (/Users/Projects/abc/node_modules/webpack-cli/bin/convert-argv.js:133:13)
at requireConfig (/Users/Projects/abc/node_modules/webpack-cli/bin/convert-argv.js:135:6)
at /Users/Projects/abc/node_modules/webpack-cli/bin/convert-argv.js:142:17
at Array.forEach (<anonymous>)
at module.exports (/Users/Projects/node_modules/webpack-cli/bin/convert-argv.js:140:15)
at yargs.parse (/Users/Projects/abc/node_modules/webpack-cli/bin/cli.js:241:39)
at Object.parse (/Users/Projects/abc/node_modules/yargs/yargs.js:563:18)
at /Users/Projects/abc/node_modules/webpack-cli/bin/cli.js:219:8
at Object.<anonymous> (/Users/Projects/abc/node_modules/webpack-cli/bin/cli.js:538: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 runCommand.then (/Users/Projects/abc/node_modules/webpack/bin/webpack.js:142:5)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7) code: 'MODULE_NOT_FOUND' }
Executing webpack failed with exit code 1.
# tns prepare
Error started happening after I upgraded to nativescirpt-dev-webpack version 0.16.2 to prevent this error.
The text was updated successfully, but these errors were encountered:
anuragd7
changed the title
Cannot find
Cannot find module 'webpack-bundle-analyzer'
Oct 15, 2018
@NickIliev Thanks for the suggestion. I have currently downgraded to Xcode 9 and the project is building as expected there without needing to make any changes. Will probably need some time before I can try out the suggestion on Xcode 10. Will post my findings on the thread then. Thanks again.
@NickIliev Thanks. Have just upgraded to NS 5.0 - Can confirm that the project builds with webpack using Xcode 10 now. However, the styles in the phone.ios.css is not applied. I am closing this issue and opening a new one for the same.
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):CLI: 4.2.4
Please, attach your package.json and webpack.config.js as these configurations are usually critical for investigating issues with webpack
webpack.config.js
Describe the bug
I get the following error on executing the following from the CLI
tns prepare ios --release --bundle --env.aot --env.uglify
Error started happening after I upgraded to nativescirpt-dev-webpack version 0.16.2 to prevent this error.
The text was updated successfully, but these errors were encountered: