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.

[Stryker] TypeError: TextDecoder is not a constructor

See original GitHub issue

Please describe the problem you are having in as much detail as possible:

Include a reproducible code sample here, if possible:

Having the error TypeError: TextDecoder is not a constructor when using it with Stryker.

Further details:

This is not a high priority at all since this is related to testing. I just want to know which is the culprit. You can checkout this issue I opened on the Stryker repository which contains a lot of information.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
C0ZENcommented, Jan 27, 2021

@ghostdevv thank you for the replay and sadly yes I already have this in my config.

Edit: Fixed - see https://github.com/Sonia-corporation/sonia-discord/issues/459

0reactions
ghostdevvcommented, Jan 27, 2021

I managed to fix this by setting the test environment to node with jest

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: TextDecoder is not a constructor #2220 - GitHub
Having the error TypeError: TextDecoder is not a constructor . Stryker config. { "$schema": "https://raw.githubusercontent.com/stryker- ...
Read more >
TypeError: TextEncoder is not a constructor - Stack Overflow
I was trying to run tests using supertest in nodejs and I got this error message ReferenceError: TextEncoder is not defined.
Read more >
util__WEBPACK_IMPORTED_M...
TypeError : util__WEBPACK_IMPORTED_MODULE_1__.TextDecoder is not a constructor #11282 ... Hello, I'm currently implementing a new pdf editor in our ...
Read more >
Referenceerror: textencoder is not defined 开玩笑, 参考错误
与Stryker 一起使用时出现错误TypeError: TextDecoder is not a constructor。更多细节:这根本不是一个高优先级,因为这与测试有关。我只想知道谁是罪魁祸首。
Read more >
ergo-lib-wasm-browser - npm
... in my app I get "TypeError: TextDecoder is not a constructor". Make sure webpack plugins TextDecoder and TextEncoder are enabled.
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