Vite is unable to detect ESM import of internal package in monorepo #400
-
Hi everyone, I have a monorepo using Nx and PNPM, where I've initialized a new React app named I'm trying to use an internal module, Steps to ReproduceThe issue can be reproduced with the following steps:
Error Log
As the error instructed, I tried adding the package to Any guidance or suggestions on resolving this issue would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The error seems to be that the build output of |
Beta Was this translation helpful? Give feedback.
The error seems to be that the build output of
react-components
contains a import to itself, which rollup prevent. Check the build output of thereact-components
package to get more insights