Open
Description
Tried to get it working using:
https://play.nativescript.org/?template=play-vue&id=yqQ5UC
It works on play.nativescript.org, but not in local environment.
Additional context
Error shown after running ns run android
Searching for devices...
Copying template files...
Platform android successfully added. v8.0.0
Preparing project...
webpack is watching the files...
asset vendor.js 6.52 MiB [emitted] (name: vendor) (id hint: defaultVendor)
asset bundle.js 120 KiB [emitted] (name: bundle)
Entrypoint bundle 6.64 MiB = vendor.js 6.52 MiB bundle.js 120 KiB
runtime modules 25.1 KiB 13 modules
orphan modules 356 bytes [orphan] 6 modules
modules by path ./node_modules/@nativescript/core/ 1.41 MiB 162 modules
modules by path ./node_modules/css-tree/ 318 KiB 113 modules
modules by path ./app/ 8.22 KiB
modules by path ./app/components/*.vue 5.09 KiB 7 modules
2 modules
modules by path ./node_modules/source-map/lib/*.js 38.2 KiB 6 modules
modules by path ./node_modules/reduce-css-calc/dist/ 131 KiB
modules by path ./node_modules/reduce-css-calc/dist/lib/*.js 11.1 KiB 3 modules
modules by path ./node_modules/reduce-css-calc/dist/*.js 120 KiB 2 modules
modules by path ./node_modules/postcss-value-parser/lib/*.js 9.11 KiB 5 modules
modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules
6 modules
ERROR in ./app/app.css
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
Error: Failed to find '~@nativescript/theme/css/core.css'
in [
/media/Media/Work-Asset/NativeScript Projects/meetz/app
]
at resolveModule.catch.catch (/media/Media/Work-Asset/NativeScript Projects/meetz/node_modules/postcss-import/lib/resolve-id.js:35:13)
@ ./app/app.js 2:0-19
webpack 5.31.2 compiled with 1 error in 11229 ms
Webpack compilation complete. Watching for file changes.
File change detected. Starting incremental webpack compilation...
assets by status 6.64 MiB [cached] 2 assets
Entrypoint bundle 6.64 MiB = vendor.js 6.52 MiB bundle.js 120 KiB
cached modules 2.48 MiB (javascript) 25.1 KiB (runtime) [cached] 351 modules
./app/app.css 39 bytes [built] [1 error]
ERROR in ./app/app.css
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
Error: Failed to find '~@nativescript/theme/css/core.css'
in [
/media/Media/Work-Asset/NativeScript Projects/meetz/app
]
at resolveModule.catch.catch (/media/Media/Work-Asset/NativeScript Projects/meetz/node_modules/postcss-import/lib/resolve-id.js:35:13)
@ ./app/app.js 2:0-19
webpack 5.31.2 compiled with 1 error in 250 ms
Webpack compilation complete. Watching for file changes.
Updating runtime package.json with configuration values...
Project successfully prepared (android)
Building project...
Gradle build...
Downloading https://services.gradle.org/distributions/gradle-6.4-all.zip
Result / Error screen on virtual android device:
For notice:
Trying to install the "original" Example file downloaded from playground did not success. I had to use "ns migrate" since I was able to make it install and run at all. The project had to be migrated to the new "nativescript.config.ts" format (from old format).
I'm a beginner and it's very frustrating, that not even a banal example will run out of the box after installing all the stuff on local machine!
Metadata
Metadata
Assignees
Labels
No labels