-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Failed to resolve entry for package when use react + vite #18931
Comments
Related to #18492 (comment) |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
I am running into the exact same issue |
Has anyone tried enabling this option? https://vitejs.dev/config/shared-options#resolve-preservesymlinks |
Hi! Could you please provide a repo with a minimal reproduction so that I can investigate this further? |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
I just tried this but it didn't work for me although I found what's causing the issue in the process. The issue only appeared when I added I haven't found a solution for my problem except by manually setting Edit:After more fiddling I noticed
As suggested in the issue under the link, adding I'm using |
Hi @Wurielle do you have a gist or repo to look at which demonstrates this configuration? |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I create 2 packages app and lib using react/vite, I got build app error when import lib in to the app.
Expected Behavior
Lib should be referenced in the app without errors.
GitHub Repo
No response
Steps to Reproduce
create 2 packages using nx/react/vite app and lib
add import lib in the app
npx nx build my-app
: [commonjs--resolver] Failed to resolve entry for package "my-lib". The package may have incorrect main/module/exports specified in its package.json.It was reproducible in ubuntu and windows , magically after renaming one of the package it started to work but after
npm i
, it stopped againNx Report
Failure Logs
No response
Package Manager Version
8.11.0
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: