-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monorepo: Cannot find package #33
Comments
I suspect that this is due to me having a monorepo...? it seems that the plugin is trying to find the packages under the root instead of |
我这边也有相同的问题 当package.json type指定module时会报react包找不到 当package.json删除type为默认时 报require的错误 提示Vite 的 CJS Node API 构建已经被废弃 但是插件的导入方式是esm的导入方式 |
和monorepo没关系,我这边也遇到这个问题了 |
固定包名的处理,应该是 Rollup 的返回参数有所变化,亦或者是 vite 5 废弃了私有 api 的使用,使用其提供的兼容库替代后,导致原有的匹配逻辑出现问题。 主要的匹配逻辑是这两块:
ref:https://vitejs.dev/guide/migration#remove-resolvepackageentry-and-resolvepackagedata-apis |
I have both react and react-dom installed and running the example, it gives an error saying the packages cannot be found
The text was updated successfully, but these errors were encountered: