[plugin:vite:import-analysis] Failed to resolve entry for package "simple-m-editor". The package may have incorrect main/module/exports specified in its package.json.
My project gives me this error when I add simple-m-editor to the project.
i just add
import { MEditor, marked } from 'simple-m-editor'; import 'simple-m-editor/dist/style.css';
I'm sorry i replay so late. Now you can use @simple-m-editor/vue to instead simple-m-editor, the new package is built with rollup and has mjs file to import.
[plugin:vite:import-analysis] Failed to resolve entry for package "simple-m-editor". The package may have incorrect main/module/exports specified in its package.json.
My project gives me this error when I add simple-m-editor to the project.
i just add
import { MEditor, marked } from 'simple-m-editor'; import 'simple-m-editor/dist/style.css';