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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all
I am trying to load monaco locally from node_modules, like in the doc
`
...
import * as monaco from 'monaco-editor';
import { loader, DiffEditor } from '@monaco-editor/react';
...
loader.config({ monaco });
`
but then webpack gives me this warning, also present in the webpage (chrome)
WARNING in ./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.js 62:39-58
Can't import the named export 'DEFAULT_FONT_FAMILY' (imported as 'DEFAULT_FONT_FAMILY') from default-exporting module (only default export is available)
@ ./node_modules/monaco-editor/esm/vs/editor/browser/view.js 38:0-57 130:28-35
@ ./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js 27:0-37 1334:25-29
@ ./node_modules/monaco-editor/esm/vs/editor/editor.main.js 44:0-57
I have tried using MonacoWebpackPlugin but with no difference in outcome
Has anyone else encoutered this? Thanks in advance!
webpack 5.90.3, node 20.11, npm 10.2.4
"name": "monaco-editor",
"version": "0.49.0",
PS: I know there is an issue related to this, but that refers to older versions, and different js code, also with CRA which I don't have
Beta Was this translation helpful? Give feedback.
All reactions