Skip to content
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

Vite:import-analysis : Failed to resolve entry for package "mui-rte" #275

Closed
3 tasks
dailenisgonzalez opened this issue Oct 5, 2021 · 2 comments
Closed
3 tasks

Comments

@dailenisgonzalez
Copy link

dailenisgonzalez commented Oct 5, 2021

Checklist

Description

When I run the npm start the app throw this error:

node_modules/vite/dist/node/chunks/dep-36bf480c.js:43807:10: error: [plugin: vite:dep-scan] Failed to resolve entry for package "mui-rte". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "mui-rte". The package may have incorrect main/module/exports specified in its package.json.
43807 │ throw new Error(Failed to resolve entry for package "${id}".

I check the node package.json from "mui-rte" in node module and in the main the route to index.js is wrong because is pointing to dist if I remove dist from there it's works.

Screen Shot 2021-10-05 at 10 12 04

Screen Shot 2021-10-05 at 10 05 09

``
@niuware
Copy link
Owner

niuware commented Oct 6, 2021

@dailenisgonzalez Thanks for the bug report, version 2.0.1 should fix this. Could you give it a try?

@dailenisgonzalez
Copy link
Author

@niuware It is working now , awesome :) , thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants