This is a Bug Report
Description
- What went wrong?
Did not import the dependencies from .brs into XML
- What did you expect should have happened?
It should add .brs dependencies into XML
- What was the config (if any) you used?
Standard kopytko-cli template.
- What stacktrace or error message did you see?
- Details:
On Linux:
<component name="AppView" extends="KopytkoGroup">
<script type="text/brightscript" uri="App.template.brs" />
<script type="text/brightscript" uri="App.view.brs" />
<!-- auto-imported sub-dependencies -->
<script type="text/brightscript" uri="pkg:/components/App.routing.brs" />
<script type="text/brightscript" uri="pkg:/components/App.theme.brs" />
<script type="text/brightscript" uri="pkg:/components/kopytko_modules/dazn_kopytkoFramework_v1/router/Router.facade.brs" />
<script type="text/brightscript" uri="pkg:/components/kopytko_modules/dazn_kopytkoFramework_v1/store/Store.facade.brs" />
<script type="text/brightscript" uri="pkg:/components/kopytko_modules/dazn_kopytkoFramework_v1/theme/Theme.facade.brs" />
<script type="text/brightscript" uri="pkg:/components/kopytko_modules/dazn_kopytkoFramework_v1/utils/KopytkoGlobalNode.brs" />
<script type="text/brightscript" uri="pkg:/components/kopytko_modules/dazn_kopytkoUtils_v2/getType.brs" />
<script type="text/brightscript" uri="pkg:/components/kopytko_modules/dazn_kopytkoUtils_v2/ternary.brs" />
</component>
On Windows:
<component name="AppView" extends="KopytkoGroup">
<script type="text/brightscript" uri="App.template.brs" />
<script type="text/brightscript" uri="App.view.brs" />
</component>
- Possible issue: You are using the node
path.join when you are doing the logic for the dependencies finder and "pkg:" path creation. The issue is that the pkg: path is the same on Windows like on the Linux. It is using forward slashes for pkg: on Windows too. With node path.join on Windows you are getting wrong paths for pkg: E.g. pkg:\\undefined\\koptyko_modules...
- The
undefined in the path is also because of the path.env for Windows is set to the \\ and the path that is checked is actually with forward slashes e.g. components/Assert.brs.
Similar or dependent issues:
*
Additional Data
- Which version of node and npm are you using?: 17.5.0 and 8.5.4
- Operating System: Windows 10 64
- Stack Trace:
- Provider Error messages:
This is a Bug Report
Description
Did not import the dependencies from .brs into XMLIt should add .brs dependencies into XMLStandard kopytko-cli template.On Linux:
On Windows:
path.joinwhen you are doing the logic for the dependencies finder and "pkg:" path creation. The issue is that thepkg:path is the same on Windows like on the Linux. It is using forward slashes forpkg:on Windows too. With nodepath.joinon Windows you are getting wrong paths forpkg:E.g.pkg:\\undefined\\koptyko_modules...undefinedin the path is also because of thepath.envfor Windows is set to the\\and the path that is checked is actually with forward slashes e.g.components/Assert.brs.Similar or dependent issues:
*
Additional Data