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.

error: Uncaught SyntaxError: The requested module './constants.ts' does not provide an export named 'MIME'

See original GitHub issue

When I run this example: https://github.com/i18next/i18next-http-backend/tree/master/example/deno it seems to work like expected, without any problem.

But when I run the deno tests: deno test test/deno/*.js --allow-net (https://github.com/i18next/i18next-http-backend/tree/master/test/deno)

I get this error: error: Uncaught SyntaxError: The requested module './constants.ts' does not provide an export named 'MIME'

Like here: https://github.com/i18next/i18next-http-backend/runs/1148469490?check_suite_focus=true

Any idea why this is happening? https://github.com/zhmushan/abc/blob/ce7954710d5c8cd895750b60527a360655c3cd80/constants.ts#L61

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
adraicommented, Nov 4, 2020
0reactions
adraicommented, Nov 4, 2020

Thank you for the hint

Read more comments on GitHub >

github_iconTop Results From Across the Web

The requested module does not provide an export named in JS
The error "The requested module does not provide an export named" occurs when mixing up default and named ES6 module imports and exports....
Read more >
Misleading error that module does not provide export #32137
You get this: SyntaxError: The requested module './dependency.cjs' does not provide an export named 'name' which is only "true" because ES ...
Read more >
42 - Stack Overflow
Uncaught SyntaxError : The requested module './add.js' does not provide an export named 'add' ; <head> ; <script type="module" src="app.js"> ; </ ...
Read more >
Common Error Details - Snowpack
Uncaught SyntaxError : The requested module './XXXXXX.js' does not provide an export named 'YYYYYY'#. If you are using TypeScript, this error could occur...
Read more >
Node.js v19.3.0 Documentation
calls() and will throw an error for functions that have not been called the expected number of times. import assert from 'node:assert'; //...
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