I have the python language server running on a port and now need to open a websocket in my react app to talk to the PYLS.
I'm using monaco-languageclient
, and this line specifically fails compilation:
MonacoServices.install(editor); //MonacoServices is from monaco-languageclient
Failed to compile.
./node_modules/vscode-languageclient/lib/client.js
Module not found: Can't resolve 'vscode' in '/node_modules/vscode-languageclient/lib'
There shouldn't be a dependency to vscode, right?
This person found a way around it by editing their webpack settings, but to do that, I'd have to eject https://stackoverflow.com/a/56644955/3344422
Is there another way around this?
(I'm using this monaco library so I didn't have to edit my webpack config https://github.com/suren-atoyan/monaco-react#editor-instance )