-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Version 0.26.0 breaks webpack build: Can't resolve 'path' in .../monaco-editor/esm/vs/language/json/_deps/minimatch #2578
Comments
Also at the official site https://microsoft.github.io/monaco-editor/, change language to |
Been pulling my hair out over this issue in my app since this afternoon. Seems like it's a general issue then. |
Seems caused by new added |
Thanks for reaching out! I had a minimatch related error when publishing monaco-json, but @aeschli fixed it. |
We temporarily reverted monaco-json back to 3.5.0 and published 0.26.1. |
Issue
We are using
monaco-editor
andmonaco-editor-webpack-plugin
in our codebase. When we upgrade frommonaco-editor@0.25.2
to0.26.0
and we got a failure when building the app in webpack:I looked at the file
monaco-editor/esm/vs/language/json/_deps/minimatch
and I see this:I'm afraid Webpack might look past the
try .. catch
block and yell aboutpath
there. Right now my workaround is as suggested in the error message, that is to addresolve.fallback: { "path": false }
. I just wonder if this is something you would fix or would you recommend me to look for the answer from thewebpack
side instead?Environment
monaco-editor version: 0.26.0
Browser: Chrome Version 91.0.4472.114 (Official Build) (x86_64)
OS: Mac OSX 11.4
Webpack: 5.44.0
monaco-editor-webpack-plugin: 4.1.0
The text was updated successfully, but these errors were encountered: