Skip to content
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

FluentMaterial fails to compile via vite #17542

Closed
7 tasks done
simensgreen opened this issue Jun 21, 2024 · 1 comment
Closed
7 tasks done

FluentMaterial fails to compile via vite #17542

simensgreen opened this issue Jun 21, 2024 · 1 comment

Comments

@simensgreen
Copy link

Describe the bug

Trying to repeat the example leads to strange errors:

https://playground.babylonjs.com/#HB4C01#9

See repo https://github.com/simensgreen/bjs-vite-bug

Seems like somehow index.html content appears in shader code and breaks it down

Also I posted topic on babylonjs forum: https://forum.babylonjs.com/t/fluentmaterial-fails-to-compile-via-vite/51518

Reproduction

https://github.com/simensgreen/bjs-vite-bug

Steps to reproduce

Clone repository, then

cd bjs-vite-bug
npm i
npm run dev

System Info

uname -a                            
Darwin simenss-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64


(MacBook Pro M2 Max MacOS Sonoma 14.4.1)

Used Package Manager

npm

Logs

No response

Validations

@simensgreen
Copy link
Author

The issue is not related to Vite.

Solution is simple: https://forum.babylonjs.com/t/fluentmaterial-fails-to-compile-via-vite/51518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant