monaco-react
monaco-react copied to clipboard
Unable to use 'loader' with NextJS
Describe the bug
Attempting to use the npm version of monaco, as we're unable to have any external dependencies (e.g. jsdelivr). Using the loader errors out with an 'importing global CSS' issue.
To Reproduce
See https://codesandbox.io/p/sandbox/silly-napier-513qic
Expected behavior I'm able to use React Monaco inside NextJS without relying on a CDN
Using monaco-editor-webpack-plugin in tandem with next-transpile-modules fixed the 'importing global CSS' issue. Still not able to get a working minimal example. Now getting:
TypeError: setting getter-only property "marked"
CodeSandbox: https://codesandbox.io/p/sandbox/distracted-carson-0q5erj
got the same issue. Hope to get how to external monaco-editor
@a3957273 @LaamGinghong did you happen to find a solution for this? same issue.
same issue.
This issue has been marked as stale due to inactivity. It will be closed in 7 days unless further activity occurs.
Closing due to inactivity. Feel free to reopen if needed.