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.

Issue when using with parcel

See original GitHub issue

monaco-editor version: 0.15.6 Browser: Chrome OS: Mac

I’m getting an error when trying to use approach from the parcel sample. When I include the Worker with self.MonacoEnvironment using getWorker and ../node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js I get the following error:

src.fc45d0fd.js:39 Uncaught (in promise) Error: Cannot find module 'node_modules/process/browser.js'
    at newRequire (src.fc45d0fd.js:39)
    at newRequire (src.fc45d0fd.js:23)
    at localRequire (src.fc45d0fd.js:55)
    at Object.parcelRequire.node_modules/mobx/lib/mobx.module.js.process (tslib.es6.js:186)
    at newRequire (src.fc45d0fd.js:49)
    at localRequire (src.fc45d0fd.js:55)
    at Object.parcelRequire.node_modules/mobx-react/index.module.js.mobx (index.module.js:1)
    at newRequire (src.fc45d0fd.js:49)
    at localRequire (src.fc45d0fd.js:55)
    at Object.parcelRequire.src/index.tsx.tslib (index.tsx:8)

Any help or hints would be appreciated. I’ve already tried the example and it seems to be working fine.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aar10ncommented, Jan 10, 2019

Added docs here #1268

1reaction
aar10ncommented, Jan 10, 2019

It’s true that there are some gaps in the documentation, so I’d be happy to do it! I’ll do a quick write-up and make a PR for it a little bit later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · parcel-bundler/parcel - GitHub
Issues list ; @parcel/bundler-default: The expression evaluated to a falsy value (CSS modules and non-modules) · #8716 opened · nartallax ; parcel ......
Read more >
Issue using Parcel bundler - Google Groups
Hello, I'm trying to use the Parcel bundler (parceljs.org) but i'm getting the following error when I launch the browser: ReferenceError: WEBGL_RENDERER is ......
Read more >
Development - Parcel
Parcel includes a development server out of the box supporting hot reloading, HTTPS, an API proxy, and more.
Read more >
How to debug a CSS issue using React, TypeScript, and Parcel
I didn't find why there was a margin-bottom: 0px that caused the issue in the first place, but I managed to find the...
Read more >
Issues with Using Attribute rules to assign parcel...
Issues with Using Attribute rules to assign parcel number in the Parcel Fabric Service · Service was published using the owner connetion ·...
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