NativeScript / NativeScript/nx
Assets are not being set when building
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 68
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with workspace.json around line 43 and the linked reproduction branch, comparing the build configuration for nativescript-dragons-and-coin with the library of the same name. Run the app's build to observe how the library's image, JSON, and audio assets are handled; done means those assets are available when the app runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100