react-photo-sphere-viewer icon indicating copy to clipboard operation
react-photo-sphere-viewer copied to clipboard

Attempted import error: './node_modules/eventemitter3/index.js' does not contain a default export (imported as 'EventEmitter').

Open ilhamgum opened this issue 2 years ago • 1 comments

What happened?

I just using your library on Nextjs 14 app router project, I already follow the instructions about the setup, and it's pretty easy and clear, then I got this error

Attempted import error: './node_modules/eventemitter3/index.js' does not contain a default export (imported as 'EventEmitter').

What should have happened?

The error should not be shown, because it's from eventemitter3, which I don't know what that is yet.

Code

No response

Sandbox Link

No response

Library Version

^4.0.2-psv5.4.4

What operating system are you using?

Windows

What browser are you using?

Edge

Logs

Attempted import error: './node_modules/eventemitter3/index.js' does not contain a default export (imported as 'EventEmitter').```

### Interest to fix the bug

- [ ] I would like to fix this bug!

ilhamgum avatar Dec 05 '23 15:12 ilhamgum

@mkubdev Hey, Can you help us to solve this issure related to Next.JS? Thanks

Elius94 avatar Dec 05 '23 16:12 Elius94

@Elius94 Hello, it's 2025 (bit late), I can't reproduce this error (same as #47)

mkubdev avatar Jan 29 '25 14:01 mkubdev

Thank @mkubdev for your help as always! I close also this issue due to inability of reproducing :)

Elius94 avatar Jan 29 '25 16:01 Elius94