Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using with monaco-editor-webpack-plugin #219

Closed
danimasa opened this issue Oct 23, 2023 · 3 comments
Closed

Error using with monaco-editor-webpack-plugin #219

danimasa opened this issue Oct 23, 2023 · 3 comments

Comments

@danimasa
Copy link

Hi, I'm having a problem with the monaco-editor-webpack-plugin after running the treemending code:

An unhandled rejection has occurred inside Forge:
Error: Cannot find module 'vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess'
Require stack:
- [...]\node_modules\monaco-editor-webpack-plugin\out\index.js

Is there a way to resolve that or some specific webpack configurations?

@asimaranov
Copy link

Same

@CGNonofr
Copy link
Contributor

The monaco-editor metadata are wrong with the treemended version and the webpack plugin relies on it.

You can add this configuration to the plugin:

            new MonacoWebpackPlugin({
                features: ['!gotoLine', '!inspectTokens', '!quickCommand', '!quickHelp', '!quickOutline', '!referenceSearch', '!toggleHighContrast']
            })

(those features are replaced by their vscode versions)

@danimasa
Copy link
Author

It worked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants