NativeScript / NativeScript/nx

Assets are not being set when building

Open
#38 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.