Closed MeroVinggen closed 1 year ago
I run into the same issue but with a different package.
it seems there is an issue with a newer version of the CLI that doesn't install the packages correctly after ns clean
command.
I used to resolve it by the following:
ns clean
npm i
ns run android
I hope this can be helpful.
@OPADA-Eng thx for your help, but it didn't solve the problem
Looks like you're using pnpm for your global cli install. Try npm or yarn, as pnpm's strict dep layout might be preventing one of our deps from working. There's work going on for updating all of our CLIs dependencies, and that might solve the issue, but I'm not sure.
I tried with npm all same steps and got new error:
"The webpack configuration file C:\Users\Admin\Desktop\myCoolApp\webpack.config.js does not exist. Ensure the file exists, or update the path in nativescript.config.(js|ts)"
I don't remember if webpack.config was in the previous attempt or not, but unfortunately ns is unusable for now
I second this. Same problem with no resolution in sight.
The webpack config missing issue has been fixed today (https://github.com/NativeScript/nativescript-cli/pull/5729), awaiting release in a patch release soon.
Anything else is lacking details, and would be better discussed on Discord: https://nativescript.org/discord
It works, now we are able to launch common template. Thx for your responding.
Issue Description
When I want to start my app at android platform on Winows 10 it fails on webpack build: "Cannot find module 'jsonfile/utils'".
Full error message:
Searching for devices... Preparing project... Error: Cannot find module 'jsonfile/utils' Require stack:
'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\node_modules\fs-extra\lib\json\index.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\node_modules\fs-extra\lib\index.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\node_modules\streamroller\lib\RollingFileWriteStream.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\node_modules\streamroller\lib\index.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\nativescript@8.4.0\node_modules\log4js\lib\appenders\file.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\nativescript@8.4.0\node_modules\log4js\lib\appenders\index.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\nativescript@8.4.0\node_modules\log4js\lib\log4js.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\nativescript@8.4.0\node_modules\nativescript\lib\common\logger\logger.js', ommon\yok.js', 'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\nativescript@8.4.0\node_modules\nativescript\lib\nativescript-cli-lib.js', 'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\helpers\config.js', 'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\helpers\platform.js',
'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\helpers\copyRules.js',
'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\helpers\fileReplacements.js', 'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\configuration\base.js',
'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\configuration\index.js',
'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\index.js', 'C:\Users\Admin\Desktop\myCoolApp2\webpack.config.js', 'C:\Users\Admin\Desktop\myCoolApp2\node_modules\@nativescript\webpack\dist\bin\index.js' ] } No configuration! Executing webpack failed with exit code 0.
Reproduction
Relevant log output (if applicable)
Environment
Dependencies
Please accept these terms