Skip to content
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

Assets are not being set when building #38

Open
YonatanKra opened this issue Sep 22, 2021 · 1 comment
Open

Assets are not being set when building #38

YonatanKra opened this issue Sep 22, 2021 · 1 comment

Comments

@YonatanKra
Copy link

YonatanKra commented Sep 22, 2021

Hi,
I've setup an nativescript app in an Nx project.
I then created a library with a game I've developed with NativeScript. The game has assets (images, JSON and audio).
When I'm trying to run the game in the app, it doesn't take the a assets from the library even though I've added it to the workspace.json.
Here's the repo: https://github.com/YonatanKra/nx-conf-demo/tree/native-script
The app is nativescript-dragons-and-coin.
The lib has the same name without nativescript.
Notice the addition of the assets to the build options: https://github.com/YonatanKra/nx-conf-demo/blob/native-script/workspace.json#L43

@wearetelescopic
Copy link

I have the same issues, assets get completely ignored. They do work in the web version with angular, but for the nativescript build we have to copy over the assets into the app. How can we tell the app to use the assets from a shared lib? There's no documentation whatsoever...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants