microsoft / monaco-editor-webpack-plugin

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

ERR! Cannot find module 'monaco-editor/esm/vs/editor/contrib/gotoSymbol/goToCommands' #91

Closed andyforever closed 4 years ago

andyforever commented 4 years ago
devDependencies: {
 "monaco-editor-webpack-plugin": "1.18.1"
}

image

BrightLin commented 4 years ago

me too!, version: ^1.7.0

iampomelo commented 4 years ago

me too!, version: ^1.7.0

1.8.0 has this problem, use 1.7.0 instead

alexdima commented 4 years ago

monaco-editor-webpack-plugin at 1.8.1 can be used to load monaco-editor at ^0.19.0. This is expressed in the peer dependency -- https://github.com/microsoft/monaco-editor-webpack-plugin/blob/7bde413e171fb58f312add5f87bb31e5a4aded0f/package.json#L31

It cannot load older versions of the monaco-editor, the reason being that the editor changes its internal shape across versions.

If you want to load older versions of the monaco-editor, you need to use older versions of the monaco-editor-webpack-plugin.