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.

Export named 'default' is not provided

See original GitHub issue

Hey.

I’m trying to use supabase (which uses cross-fetch) with Nuxt 3 and I found a problem with browser-ponyfill:

Uncaught SyntaxError: The requested module '/node_modules/cross-fetch/dist/browser-ponyfill.js?v=6f3da668' does not provide an export named 'default'

More info about ES modules in Nuxt 3: https://v3.nuxtjs.org/concepts/esm

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
eMeRiKa13commented, Jan 8, 2022

Thank for your answer. At the end, I have just removed both transpile and it’s now working transpile : ['@supabase', 'cross-fetch']

For the Supabase integration, I’m using what Atinux, the Nuxt’s creator, showcased here https://github.com/nuxt/framework/pull/2058

0reactions
lukaszflorczakcommented, Jan 8, 2022

Nice, thank you for that. I’ll test it.


@lquixada Sorry for the offtopic

Read more comments on GitHub >

github_iconTop Results From Across the Web

Requested module does not provide export named 'default'
To solve the error "The requested module does not provide an export named 'default'", use the default keyword when exporting a value from...
Read more >
How to Solve does not provide an export named 'default'
To solve the error 'does not provide an export name default' in JavaScript, use the default keyword to make it the default export...
Read more >
The requested module '' does not provide an export named ...
When I try adding my own export in TableCsv.js it says A module cannot have multiple default exports.ts(2528). Here is my code. main.js...
Read more >
Misleading error that module does not provide export #32137
SyntaxError: The requested module './dependency.cjs' is a CommonJS module, which can only provide a default export, not named exports, to an ES ...
Read more >
vite the requested module does not provide an export named ...
The reason it didn't work is that Vue provides a named export, whereas you are trying to import it as though it had...
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