Export named 'default' is not provided
See original GitHub issueHey.
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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Nice, thank you for that. I’ll test it.
@lquixada Sorry for the offtopic