rokucommunity / rokucommunity/sample-projects

how do I use the component-library-and-project sample?

Open
#4 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Brightscript
Stars
17
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I'm trying the demos in this project and I'm stuck with component-library-and-project.
I see there are two bs project; complib and app.
I cloned the repo on my machine, entered in complib folder and successfully run bsc that created complib/out/complib.zip.
Now I want to "use" this library in app.
Running bsc inside app just return errors.
On https://github.com/rokucommunity/sample-projects/blob/de0ade935112613b63af83cdf51ade02c928ce51/component-library-and-project/app/manifest#L10 I see that it expect to download complib.zip from http.
I changed to point to localhost and started a webserver locally (just python3 -mhttp.server in the complib/out folder). I can succesfully download the .zip file from firefox.
Still, I have errors running bsc:

.../component-library-and-project/app$ bsc
[03:37:09:7520 PM]  No bsconfig.json file found, using default options
[03:37:09:7550 PM]  Loading 0 plugins for cwd ".../component-library-and-project/app"
[03:37:09:7590 PM]  Parsing files
[03:37:09:7870 PM]  Parsing files finished. (27.954ms)
[03:37:09:7880 PM]  Validating project
[03:37:09:7920 PM]  Validating project finished. (4.132ms)

components/MainScene.brs:28:9 - error BS1001: Cannot find name 'dialog'

 28          dialog.update({
 __          ~~~~~~

[03:37:09:7940 PM]  Found 1 error
$

what I'm missing?

Contributor guide

No contributing guide indexed for this repository

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 component-library-and-project/app/manifest and components/MainScene.brs, then compare the build steps for complib and app. Run bsc in both directories and verify that the app build resolves complib/out/complib.zip and no longer reports the missing dialog name.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.