Uncaught TypeError: require2 is not a function #4085
Replies: 1 comment 1 reply
-
I got to fix it. Just including
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I'm trying to use monaco with electron and the WebpackPlugin.
However, Looking into 'ts.worker.js' compiled file there is a
require2
which is assigned as undefined:I think that's the cause of

Looking into the whole file, it only seems to have one assignment to this var, however that
void 0
does not seems correct.I saw many people with this unexpected usage cause by a missed definition of the getWorkerUrl, however this seems to be working:
Beta Was this translation helpful? Give feedback.
All reactions