Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Module bobril in src/index not registered #69

Closed
Xrew opened this issue Dec 13, 2017 · 2 comments
Closed

Error: Module bobril in src/index not registered #69

Xrew opened this issue Dec 13, 2017 · 2 comments

Comments

@Xrew
Copy link

Xrew commented Dec 13, 2017

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:
image

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:
image

The problem is, that the loader wants to load the module bobril through the key: "node_modules/bobril/index"
From this map:
image
It will fall to this exception:
image

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.

Sandbox code to see the error:
bobril-issue-sandbox.zip

Any idea?

Thanks :)

@Bobris
Copy link
Owner

Bobris commented Dec 13, 2017

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.

@Bobris
Copy link
Owner

Bobris commented Dec 13, 2017

Fixed in bobril-build 0.80.2

@Bobris Bobris closed this as completed Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants