[Problem/Question]
I added the UIKit to a vanilla NextJS app, following the instructions at Build a Next.js app for chat messaging: Adding Sendbird UIKit to a Next.js app | Sendbird .
When I tried to build, I saw an error:
Attempted import error: 'WavHeader' is not exported from '../lame.all.js' (imported as '$dd7ee3788d91dcb8$export$cb948f2d6837f136').
Import trace for requested module:
../../node_modules/@sendbird/uikit-react/chunks/bundle-KkDaqYo6.js
../../node_modules/@sendbird/uikit-react/VoiceRecorder/context.js
../../node_modules/@sendbird/uikit-react/App.js
./app/components/Chat.tsx
./app/page.tsx
I’m able to workaround this by using NextJS 13.5.1
// If problem, please fill out the below. If question, please delete.
[UIKit Version]
3.8.2
[Reproduction Steps]
Follow instructions at Build a Next.js app for chat messaging: Adding Sendbird UIKit to a Next.js app | Sendbird with a vanilla NextJS 14.0.3 (latest) build.
[Frequency]
Every time
[Current impact]
High impact. Workaround was to revert NextJS to 13.5.1 and then everything built as expected
Hello @seatedviper
I have checked the issue you mentioned. It seems to be a problem with the nextjs
.
opened 12:22AM - 17 Nov 23 UTC
closed 03:26PM - 23 Nov 23 UTC
please add a complete reproduction
### Verify canary release
- [X] I verified that the issue exists in the latest … Next.js canary release
### Provide environment information
```bash
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 18.17.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 14.0.4-canary.1
eslint-config-next: 14.0.3
react: 18.2.0
react-dom: 18.2.0
typescript: 5.2.2
Next.js Config:
output: N/A
```
### Which example does this report relate to?
there is no
### What browser are you using? (if relevant)
Chrome 119.0.6045.160
### How are you deploying your application? (if relevant)
localhost
### Describe the Bug
There was no problem with my @react-three/fiber package. While the Next 14.0.1 version worked very smoothly, I started to receive warnings in the next 14.0.2, 14.0.3 and canary versions. I updated all relevant packages but the problem persists. The packages and versions that may be relevant are as follows:
@react-three/fiber: 8.15.11
@react-three/drei: 9.88.16
three: 0.158.0
The warning is as follows: Attempted import error: 'webgl-sdf-generator' does not contain a default export (imported as 'createSDFGenerator').
![Screenshot_6](https://github.com/vercel/next.js/assets/57527680/37b1498a-ed5e-4f91-81a1-3f46b00be193)
### Expected Behavior
I expect it to work without warning, just like it did in Next 14.0.1.
### To Reproduce
I updated the relevant packages and their next versions, but the result is the same. I get the same warning in both development and production mode.
Could you please try upgrading to version 14.0.1?
After changing the version, delete the .next
and .node_modules
folders before running it.
Thanks. @Luke_Cha . I realize I wasn’t clear that my original bug was with NextJS 14.0.3
nextjs 14.0.1 This works fine and I can’t repro the issue
nextjs 14.0.2 Can reproduce
nextjs 14.0.3 (latest) Can reproduce.
Wait but isn’t this a problem still if it’s broken in the latest nextjs release?
I think the problem has been solved in version 14.0.4.
Confirmed! Thanks @Luke_Cha
1 Like