You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use react-router v7 which uses Vite.
When I import the module via
import CodeEditor from '@uiw/react-textarea-code-editor';
It fails with error:
Cannot find module '.../node_modules/@uiw/react-textarea-code-editor/esm/Editor' imported from .../node_modules/@uiw/react-textarea-code-editor/esm/index.js
The reason is that it is required to have an extension in the import but the ESM build is missing them.
The text was updated successfully, but these errors were encountered:
I use react-router v7 which uses Vite.
When I import the module via
It fails with error:
Cannot find module '.../node_modules/@uiw/react-textarea-code-editor/esm/Editor' imported from .../node_modules/@uiw/react-textarea-code-editor/esm/index.js
The reason is that it is required to have an extension in the import but the ESM build is missing them.
The text was updated successfully, but these errors were encountered: