question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack build error with 0.18

See original GitHub issue

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:

./node_modules/monaco-editor/esm/vs/base/worker/defaultWorkerFactory.js 35:32-39
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

You can reproduce this error by cloning https://github.com/vega/editor/tree/dom/upgrade and running

yarn && yarn start

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ErkoKnollcommented, Sep 5, 2019

Not sure if it is related but in addition to that warning I’m also getting the following error:

Uncaught ReferenceError: __insane_exports is not defined
    at Object.push../node_modules/monaco-editor/esm/vs/base/common/insane/insane.js.4../defaults (:3000/static/js/0.chunk.js:78167)
    at o (:3000/static/js/0.chunk.js:78086)
    at r (:3000/static/js/0.chunk.js:78095)
    at Object../node_modules/monaco-editor/esm/vs/base/common/insane/insane.js (:3000/static/js/0.chunk.js:78101)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Module../node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js (:3000/static/js/0.chunk.js:53998)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Module../node_modules/monaco-editor/esm/vs/editor/contrib/markdown/markdownRenderer.js (:3000/static/js/0.chunk.js:187682)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Module../node_modules/monaco-editor/esm/vs/editor/contrib/hover/modesContentHover.js (:3000/static/js/0.chunk.js:183158)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Module../node_modules/monaco-editor/esm/vs/editor/contrib/hover/hover.js (:3000/static/js/0.chunk.js:182126)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Object../include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js (:3000/static/js/0.chunk.js:67)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Object../node_modules/react-monaco-editor/lib/editor.js (:3000/static/js/0.chunk.js:260909)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
    at fn (:3000/static/js/bundle.js:150)
    at Object../node_modules/react-monaco-editor/lib/index.js (:3000/static/js/0.chunk.js:261284)
    at __webpack_require__ (:3000/static/js/bundle.js:787)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack build error - node.js - Stack Overflow
Strange workaround: I zipped my entire node_modules map and transfered it to PC_A and placed it correctly. Now webpack builds just fine. So...
Read more >
PSA: Old Elm binary downloads now gone - Show and Tell
This will download binaries from githhub. Unfortunately, this will not work if you are also using the elm-webpack-loader as the 0.18-compatible ...
Read more >
monaco-editor-webpack-plugin - npm
A webpack plugin for the Monaco Editor. Latest version: 7.0.1, last published: a year ago. Start using monaco-editor-webpack-plugin in your ...
Read more >
Development - webpack 3 documentation
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location. For example, if...
Read more >
Webpack Error using latest version 3.6.0 (Example) - Treehouse
Hi,. when running npm run build webpack is transpiling with no error. But in Chrome developer tools I get the following error: "Uncaught ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found