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

External module with NPM namespace fails importing #60

Open
Bunk opened this issue May 16, 2016 · 0 comments
Open

External module with NPM namespace fails importing #60

Bunk opened this issue May 16, 2016 · 0 comments

Comments

@Bunk
Copy link

Bunk commented May 16, 2016

If you try to register an external module with an NPM module that has a namespace (i.e. @lk/core-taskboard-api), autohost will fail to register it with an error.

This configuration:

"host": {
    "modules": [
        "autohost-logging-collector",
        "autohost-pubsub",
        "@lk/core-taskboard-api"
    ]
}

Results in this error:

Cannot find module '/dev/bunk/autohost-project/@lk/core-taskboard-api'

A simple workaround for this issue to is to use a relative file path instead:

"host": {
    "modules": [
        "autohost-logging-collector",
        "autohost-pubsub",
        "node_modules/@lk/core-taskboard-api"
    ]
}
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

1 participant