External module with NPM namespace fails importing
Opened this issue · 0 comments
Bunk commented
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"
]
}