-
Hello, I'm trying to develop an npm package for use in framework apps, but when installing them locally (using I see from the documentation that not all node packages are usable in the browser. I suspect this is where my misunderstanding lies. Any tips for compiling/building npm packages in such a way that I can import and use them in Framework projects? Something similar to The dev server provides some more detail:
Any help would be appreciated, thanks! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I think it's that we don't follow the npm (or Yarn) links, because if I copy your module into node_modules, it works. |
Beta Was this translation helpful? Give feedback.
-
I wanted to add for anyone else experiencing this issue in future that |
Beta Was this translation helpful? Give feedback.
-
Hello, we are using observable framework in a pnpm monorepo as an easy way to build internal tooling around some of our APIs. It works amazing well for this! However, because of this issue we are unable to share code with the observable framework package in the repo. We are trying to share some basic util functions, it sort of works when I switch the dependency from |
Beta Was this translation helpful? Give feedback.
-
Is there any way I can force it to follow symlinks? |
Beta Was this translation helpful? Give feedback.
I think it's that we don't follow the npm (or Yarn) links, because if I copy your module into node_modules, it works.