-
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
Webpack build error with 0.18 #1572
Comments
same problem |
Not sure if it is related but in addition to that warning I'm also getting the following error:
|
After updating from 0.17.1 to 0.18.0 appeared a new bug: monaco: 0.18.0 With 0.17.1 works fine. Workers loaded like this: import CssWorker from 'worker-loader!../node_modules/monaco-editor/esm/vs/language/css/css.worker.js'
import HtmlWorker from 'worker-loader!../node_modules/monaco-editor/esm/vs/language/html/html.worker.js'
import TsWorker from 'worker-loader!../node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js'
import EditorWorker from 'worker-loader!../node_modules/monaco-editor/esm/vs/editor/editor.worker.js'
const extensionMap = {
'css': 'css',
'scss': 'css',
'sass': 'css',
'less': 'css',
'html': 'html',
'pug': 'html',
'inky': 'html',
'typescript': 'js',
'javascript': 'js',
}
const workers = {
css: CssWorker,
html: HtmlWorker,
js: TsWorker,
editor: EditorWorker,
}
self.MonacoEnvironment = {
getWorker: function ( moduleId, label ) {
const workerType = extensionMap.hasOwnProperty(label) ? extensionMap[label] : 'editor'
return new workers[workerType]()
},
} |
@rebornix can you take a look at this issue? |
Fixed via microsoft/vscode@1ce58cc |
Thank you! |
monaco-editor version: 0.18.0
Steps or JS usage snippet reproducing the issue:
I am trying to build the latest monaco with webpack but I am getting the following error:
You can reproduce this error by cloning https://github.com/vega/editor/tree/dom/upgrade and running
The text was updated successfully, but these errors were encountered: