The error message of Google Chrome is as follows:
Uncaught SyntaxError: Unexpected token'<‘
When loading the draco algorithm, the file path was also quoted according to the online method, and the result was an error. I used Parcel to package and build.
dracoLoader.setDecoderPath(” /three/examples/js/libs/draco/gltf/ “);
The solution is to put the files in this directory in static files. Static file directory: /static/gltf
The 3D model is a model built using 3dmax and exported to fbx format files. Use FBX2glTF to convert to gltf
npm install -g FBX2glTF
Then enter node_global\node_modules\fbx2gltf\bin\Windows_NT directory
> .\FBX2glTF.exe -i .\lou.FBX -b -d
Click to view code
Perfect solution, no error is reported, remember to add a slash before and after gltf, if you do not add it, you will still report an error
Similar Posts:
- Typescript vscode terminal error command not found: TS node solution
- syntax error near unexpected token `do [How to Solve]
- Eperm: operation not permitted, unlink
- Causes and solutions of Django’s unique error reporting
- Name Error: name ‘yolo_head’ is not defined [How to Solve]
- Failed to install node with. MSI, rolling back action (Reprint)
- NPM Install vue-cli Error: internal/modules/cjs/loader.js (Error: Cannot find module ‘D:\Program\nodejs\node_global\node_modules\vue-cli\bin\vue’)
- Function of double slash in XPath / / double slash
- In vmware10, centos7 mounts the shared folder of windows host, and prompts: error: cannot mount filesystem: no such device
- Screeps Server Install screepsmod-mongo Error: node\r file or directory does not exist