Replies: 2 comments 2 replies
-
It looks like See https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies
|
Beta Was this translation helpful? Give feedback.
-
@hi-ogawa I wound re-creating a repo from scratch and got it to work, and used it to debug my existing repo. It was a bunch of configurations that all needed to work together. I've cleaned up that repo here: https://github.com/rr326/testvite I don't know if it would be useful to expose this repo somewhere in vite-land where other people with similar problems might find it. For a beginner, like me, you really need to understand the interaction of several configuration options in package.json, tsconfig.json, and vite - in multiple folders. Tricky. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
I'm really struggling to get Vite to properly import some compiled code from a shared library.
error in browser.
I think what might be happening is that it isn't importing the linked files (like restApi.js) which actually has the source code. But it IS in the dist folder. This is all included as a node workspace. And this works for other node apps in my monorepo. Maybe because this is browser based?
I've tried a few different things in the vite.config.ts file, but nothing seems to work.
I'm at wit's end. Thanks for any tips.
Beta Was this translation helpful? Give feedback.
All reactions