You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to run roca on my project but the following error is raised:
Interpreter found an error: Error: Encountered an error when parsing component ButtonBar: TypeError [ERR_INVALID_URL]: Invalid URL: ButtonBar.brs
at componentDefinitions.forEach (/Users/user/Projects/roca-test-roku/nod_modules/brs/lib/index.js:66:19)
Hey @adheus — thanks for the clear bug report! I suspect this is caused by the fact that SGDEX uses relative paths in its <script/> tags, but brs (the brightscript interpreter that roca runs in) doesn't support those yet. I'll file an issue over in that project to get that supported — hopefully we can get that released pretty soon 😅
In the meantime, you should be able to get around it by replacing the three relative path uri attributes in ButtonBar.xml with absolute paths (e.g. pkg:/path/to/ButtonBar.brs, pkg:/path/to/ContentManager/ContentManagerUtils.brs, and pkg:/path/to/Views/utils/Utils.brs). I know that's a pain to do repeatedly for all the SGDEX components, so hopefully this is a one-off change for now while we get relative paths supported upstream.
Hi, I'm trying to run roca on my project but the following error is raised:
This error is while it is trying to parse the ButtonBar.xml component from Roku SGDEX(https://github.com/rokudev/SceneGraphDeveloperExtensions/tree/master/extensions/SGDEX/ButtonBar).
Did I forget to do something or is there any way that I can skip that file?
The text was updated successfully, but these errors were encountered: