niuware / mui-rte

Material-UI Rich Text Editor and Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dailenisgonzalez opened this issue · comments

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

``

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

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