DenoDDeno
Powered by
ChilliSniffC
Denoβ€’4y agoβ€’
17 replies
ChilliSniff

does not provide an export named... module import

does anybody know whats going on, when i reload my page only sometimes i get this message :
The requested module './mymod.module.js' does not provide an export named 'mymod' 
The requested module './mymod.module.js' does not provide an export named 'mymod' 

when i import like this
import {mymod} from "./mymod.module.js" 
import {mymod} from "./mymod.module.js" 

but when i import like this
var mymod = (await import("./mymod.module.js")).mymod
var mymod = (await import("./mymod.module.js")).mymod

then it is working
what is going on ?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

The requested module does not provide an export named 'default'
WillduneWWilldune / help
3y ago
error: module 'node:fs' does not provide an export named 'globSync'
OxooxoOOxooxo / help
15mo ago
The requested module 'npm:@jest/globals' does not provide an export named 'describe'
bzm3rBbzm3r / help
12mo ago
The requested module 'test/jsx-runtime' does not provide an export named 'jsxs'
taiwannumberoneTtaiwannumberone / help
3y ago