and the webapp/package.json is linking in the dependancies as follows:
"myuielement": "../npms/myuielement",
This is working great... when running meteor locally.
But when I try to run meteor build it dies and gives me an error like the following:
$ meteor build /tmp/myproject-build
Unable to resolve some modules:
"dist/index.js" in /Users/alan/Code/myproject/webapp/node_modules/myuielement/package.json (web.browser)
If you notice problems related to these missing modules, consider running:
meteor npm install --save dist
I know it has to do with main: dist/index.js in package.json --- I experimented with removing the dist to no avail (didn't expect it to help, but I tried)
Do you have any recommendations for me? These packages are no use to anyone else, it seems silly to publish them. But I love the isolation of this pattern and would prefer to keep it if I can...
In my case, I've got the following directory structure:
and the
webapp/package.json
is linking in the dependancies as follows:This is working great... when running meteor locally.
But when I try to run
meteor build
it dies and gives me an error like the following:I know it has to do with
main: dist/index.js
inpackage.json
--- I experimented with removing thedist
to no avail (didn't expect it to help, but I tried)Do you have any recommendations for me? These packages are no use to anyone else, it seems silly to publish them. But I love the isolation of this pattern and would prefer to keep it if I can...
Ideas?