Closed alexnm closed 4 months ago
May be we should keep an eye on this --> https://github.com/ionic-team/stencil/issues/1491
it is indeed a problem with symlinks. the module bundler does not work from rollup unless modules are in the current directory node_modules
. so if I install version 0.7, all dependencies are brought down into the repl/node_modules
and stencil recognizes the commonjs imports and everything. but if dependencies are taken directly as symlinks from the top node_modules
rollup doesn't understand commonjs. I believe this could be fixed by including that folder in the rollup-plugin-commonjs
inside stencil, but there's no way to configure that :(
It looks like a rollup problem, but I don't have any experience with it so I'll leave an issue for now in case someone wants to grab this.
Currently the
teleport-repl-component
works with the npm versions 0.7 of the generators. You can reproduce this error by trying to update the package.json to use the latest 0.8.1 and do ayarn
inside the root of the monorepo, so lerna will doyarn link
for the packages.