Can't use scoped npm packages
cmmartin opened this issue · 1 comments
cmmartin commented
If I try to run docker-compose up
with a scoped npm dependency like @google-cloud/language
, I get the following error after build...
api_1 | Finished 'build' after 2357ms
api_1 | module.js:538
api_1 | throw err;
api_1 | ^
api_1 |
api_1 | Error: Cannot find module '@google-cloud/language'
api_1 | at Function.Module._resolveFilename (module.js:536:15)
I think maybe this is due to the nested directory structure in scoped package. The package exists at node_modules/@google-cloud/language
instead of at the top level of node_modules
cmmartin commented
This ended up being an issue with @google-cloud/language
and isn't related to this project