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.

Could not load worker TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.

See original GitHub issue

Problem

I’m using react-ace in my project but encounter a problem:

Could not load worker TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.
    at new WorkerClient (index.js:16800)
    at Mode.createWorker (javascript.js:1029)
    at EditSession.$startWorker (index.js:9120)
    at EditSession.$onChangeMode (index.js:9076)
    at EditSession.<anonymous> (index.js:9057)
    at AppConfig.exports.loadModule (index.js:3684)
    at EditSession.setMode (index.js:9046)
    at ReactAce.componentDidMount (ace.js:93)
    at ReactCompositeComponent.js:264
    at measureLifeCyclePerf (ReactCompositeComponent.js:75)

This problem only occur when I use modes that is related to javascript (javascript, coffee, etc.)

Sample code

import AceEditor from "react-ace";
import 'brace';
import 'brace/mode/javascript';
import 'brace/theme/github';

class Test extends React.Component<any, any> {
    render() {
        <AceEditor mode="javascript" theme="github" name="name" />
    }
}

I’ve tried everything I can come up with. Is there anyone who can help to solve this problem? Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
intrepidOliviacommented, Jul 18, 2018

Does anyone know if this was ever filed as an issue with Ace?

I’m running into this problem, but it’s occurring during Mocha testing instead of normal rendering, and fiddling with the webpack doesn’t fix it. 😦

5reactions
joshyudeepcommented, Sep 5, 2019

I’m running into this problem, but it’s occurring during Mocha testing instead of normal rendering, and fiddling with the webpack doesn’t fix it. 😦

bump. running into the same issue w/ jest and testing-library/react 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'createObjectURL' on 'URL': - Stack Overflow
createObjectURL ('broken') throws an error: Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature ...
Read more >
Failed to execute 'createObjectURL' on 'URL': No function was ...
TypeError : Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. #251. Open.
Read more >
Failed to Execute 'createObjectURL' on 'URL': No Function ...
Uncaught TypeError: Failed to Execute 'createObjectURL' on 'URL': No Function Was Found That Matched the Signature Provided. I was stuck with the error...
Read more >
Failed to execute 'createObjectURL' on 'URL' - Google Groups
Getting Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. 1129 views.
Read more >
TypeError: Failed to execute 'createObjectURL' on ... - YouTube
HTML : TypeError : Failed to execute ' createObjectURL ' on ' URL ': Overload resolution failed [ Beautify Your Computer ...
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