microsoft / monaco-editor-webpack-plugin

Moved to https://github.com/microsoft/monaco-editor
483 stars 99 forks source link

Cannot read property 'split' of undefined #149

Closed yazansalhi closed 3 years ago

yazansalhi commented 3 years ago

plugins: [ new MonacoWebpackPlugin({ languages: ['javascript','typescript','css','html','json'] }), ] i found it at line 34 in AddWorkerEntryPointPlugin file

const majorVersion = webpack.version.split('.')[0];

webpack.version undefined

its worked fine with old versions of monaco-editor-webpack-plugin

"monaco-editor": "^0.24.0", "monaco-editor-webpack-plugin": "^3.1.0" "webpack": "^3.6.0",

alexdima commented 3 years ago

I'm sorry it doesn't seem to be working, but webpack 3.x is no longer supported. This is expressed in the peerDependencies.

With so many requests that we get here and in the VS Code issue tracker, we just cannot provide the support we would like to offer.

I'll close this issue, but if you have specific follow up questions, we'll try to help as good as we can given the limited resources that we have.

Thanks for your understanding!