Examples fail to build using the provided source code
Summary
When using the provided source code from the example page, namely the index.js, index.html and package.json files copied from the example page, vite fails to run the code due to having a too old target.
Steps to reproduce
- Open any example in the website
- Copy the 3 source codes into their respective files (
index.js,index.htmlandpackage.json) - execute
npm install - execute
npm run dev
Expected behaviour
The page runs properly and the example is displayed.
Actual behaviour
Vite fails.
$ npm run dev
VITE v3.2.11 ready in 173 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
3:15:05 PM [vite] vite.config.js changed, restarting server...
3:15:05 PM [vite] server restarted.
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
✘ [ERROR] Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)
node_modules/3d-tiles-renderer/build/WMSCapabilitiesLoader-Ca3IzEbJ.js:1703:29:
1703 │ return t === "INT64" ? 0n : 0;
Informations
- Giro3D version: 0.43.7
- Browser (Firefox, Chrome, Opera, Safari...) and version: N/A
- OS (Linux, MacOS, Windows...) Linux
Edited by Sébastien Guimmara