-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
r171 : Fn is not a function with vite. #29996
Comments
Your fiddle is not correct since the import map does not define https://jsfiddle.net/a8xm3fph/5/ Maybe a Vite specific issue? The export in the npm package looks correct. Line 19 in 17c59b2
|
Fn is not part of three.module.js. I see Fn as part of three.webgpu.js with the ability to generate glsl code in fallback, but not as a tool intended for targeted shader generation in glsl with three.module.js. |
Its the imports of the jsfiddle examples from the Bug Request. |
Thanks for the heads up. I have updated the fiddles so the import maps reflect the changes of
I guess you are referring to this setup, right? I'm not a vite user so hopefully @RenaudRohlinger can help. |
Description
import { Fn } from 'three/tsl'
not working in r171The requested module '/node_modules/.vite/deps/three_tsl.js?v=dde6d16d' does not provide an export named 'Fn'
I saw similar problem last week when opening a bug in jsfiddle and using the dev branch.Should we change our imports? @mrdoob
Reproduction steps
Code
X
Live example
https://jsfiddle.net/Makio64/m5zLofx2/1/
Screenshots
No response
Version
r171
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: