-
-
Notifications
You must be signed in to change notification settings - Fork 197
Android run fails #5724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I run into the same issue but with a different package.
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 (#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:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\Users\Admin\AppData\Local\pnpm\global\5.pnpm\node_modules\fs-extra\lib\json\output-json.js:3:23)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\Users\Admin\AppData\Local\pnpm\global\5.pnpm\node_modules\fs-extra\lib\json\index.js:6:25)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\node_modules\fs-extra\lib\json\output-json.js',
'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\[email protected]\node_modules\log4js\lib\appenders\file.js',
'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\[email protected]\node_modules\log4js\lib\appenders\index.js',
'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\[email protected]\node_modules\log4js\lib\log4js.js',
'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\[email protected]\node_modules\nativescript\lib\common\logger\logger.js',
ommon\yok.js',
'C:\Users\Admin\AppData\Local\pnpm\global\5\.pnpm\[email protected]\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
The text was updated successfully, but these errors were encountered: