-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempted import error: 'webgl-sdf-generator' does not contain a default export (imported as 'createSDFGenerator') #58557
Comments
Yes I'm getting the exact same thing too. Thanks for making feel less crazy. |
hey @dincerpece, I've encountered the same issue. Have you found a solution? If so, could you please share it? |
I'm also encountering this issue |
i also facing same issue..... |
Seems an issue in newer next versions. |
I'm also facing the same issue in NextJst 14.0.3 |
I merged pmndrs/drei#1726 in Drei 9.88.17 which contains a work-around so you can consume Drei, but let me know if this does/doesn't work when using WRT to Next and possibly a compiler regression, the specific syntax used in |
The Issue still occurs with |
This warning still persists for me. I'm only importing the OrbitControls component in my case. I tested using the Text component and nothing seems to break, but the warning is still there. Lmk if there's anything I can do to help. Relatively new to Next and Three, but I can probably figure something out if pointed in the right direction. |
As long as cavas is used it will exist. |
If someone could share an example or repository, that would help us track this down. |
I simply prepared a repository, hope it helps: https://codesandbox.io/p/sandbox/nextjs-three-fb-1-csr869 |
Unfortunately, that affirms that there is no way for us to work around this in Drei and that it's an issue with the app directory. We've received a host of issues from its compiler all over the three.js ecosystem since the adoption of SWC. You'll have to pin to Next 14.0.1 or earlier until a fix becomes available. {
"dependencies": {
"next": "14.0.1"
}
} |
As I mentioned in my description, while there is no problem in 14.0.1, this warning occurs in later versions and canaries. |
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Same issue for the |
Going to combine with #58831 since there's a reproduction 🙏 |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
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').
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.
The text was updated successfully, but these errors were encountered: