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 have an issue with loader of nodejs modules. I have created a sandbox project to visualize the problem
The problem occurs, when I import typescript file, that is not in the hiearchy of the project directories.
The project structure:
There are two projects. The one is located in src and the second in otherProject. Each of this projects has own package.json.
I want to import an utils.ts class in src project.
If I run bb command in src project, than bobril sources in the browser looks like:
The problem is, that the loader wants to load the module bobril through the key: "node_modules/bobril/index"
From this map:
It will fall to this exception:
So, in the chrome browser console this exception occured:
Uncaught Error: Module bobril in src/index not registered
at Function.R.r (loader.js:27)
at loader.js:31
at index.ts:1
at Function.R.r (loader.js:31)
at (index):16
I need this, to create a sandbox (example) project, to test the core functionality of another project.
This is bug in bobril-build, so it should be reported to https://github.com/bobris/bobril-build, but it is not simple to move issue so I am leaving it here.
Hi,
I have an issue with loader of nodejs modules. I have created a sandbox project to visualize the problem
The problem occurs, when I import typescript file, that is not in the hiearchy of the project directories.
The project structure:
There are two projects. The one is located in
src
and the second inotherProject
. Each of this projects has own package.json.I want to import an
utils.ts
class insrc
project.If I run bb command in
src
project, than bobril sources in the browser looks like:The problem is, that the loader wants to load the module bobril through the key:
"node_modules/bobril/index"
From this map:
It will fall to this exception:
So, in the chrome browser console this exception occured:
I need this, to create a sandbox (example) project, to test the core functionality of another project.
Sandbox code to see the error:
bobril-issue-sandbox.zip
Any idea?
Thanks :)
The text was updated successfully, but these errors were encountered: