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.

Uncaught TypeError: Cannot read property 'getSync' of undefined

See original GitHub issue
magickApi.js:78 Uncaught TypeError: Cannot read property 'getSync' of undefined
    at Object../node_modules/wasm-imagemagick/dist/src/magickApi.js (magickApi.js:78)

success after removing .default on line 78

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
Lagilycommented, Jan 4, 2020

I have done something like this now and it works like a charm, a bit hacky though:

<script type="module">
  import * as Magick from "https://knicknic.github.io/wasm-imagemagick/magickApi.js";

  window.magick = Magick;
</script>
3reactions
JohnForstercommented, Jun 27, 2020

I’m importing this package into a react app, and encountering this problem. Deleting the .default works, but is there a workaround that doesn’t involve modifying the contents of my node_modules, as this will be undone when it is built by my CI pipeline?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'sync' of undefined. How do I ...
I ran into this today. It seems if you get an error, it's not cleared even if you reload the extension - you...
Read more >
TypeError: Cannot read property 'sync' of undefined | Medium
In this post am going to share the possibility of the “TypeError: Cannot read property 'sync' of undefined”. The error above can be...
Read more >
Cannot read property 'call' of undefined
I am running HelloWorld contract. pragma solidity ^0.4.2; contract HelloWorld { uint public balance; function Helloworld(){ balance = ...
Read more >
Cannot read properties of undefined' - JavaScript Debugging
How To Fix ' Uncaught TypeError : Cannot read properties of undefined ' - JavaScript Debugging.
Read more >
Can't enable synch in browser - Sync - Brave Community
[7283:7283:0327/234347.984512:ERROR:CONSOLE(2953)] "Uncaught TypeError: Cannot read property 'appsSynced' of undefined", ...
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