Open dinis4 opened 1 month ago
I got the same problem,is says: error: Mismatched anonymous define() modules... when I delete window.require, it get well. I can't remove window.require too
I config like:
import * as monaco from 'monaco-editor';
import { loader } from '@monaco-editor/react';
loader.config({ monaco })
I set my config file to avoid loading from cdn
monaco.config({ vs: { path: 'node_modules/monaco-editor/min/vs'} });
on a page require.js is already exist and at a time I load monaco-editor files I get error from require.js
error: mismatched anonymous define() modules: function { ... };
I cannot remove requirejs, as this is what the platform provides me.