Thulinma/ACNLPatternTool

Error loading the gltf file

ydzhang12345 opened this issue · 3 comments

I am running in win10. When I try to build the project, it throws the following errors:

ERROR in ./injected/easel/model.gltf 2:12
Module parse failed: Unexpected token (2:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| {

"asset" : {

| "version" : "2.0",
| "generator" : "Khronos glTF Blender I/O v1.2.20"

any idea how to fix it? I tried google around but with no luck. Many thanks!

We have a generic loader to hande this no?
This is webpack 5 using asset loaders
https://github.com/Thulinma/ACNLPatternTool/blob/master/config/webpack.config.js#L233

Thank you for your reply. Does the project require some specific package versions?

You should be using the pinned node version under .nvmrc or you may end up installing the wrong packages.

My recommendation is to use nvm (node version manager) this a common tool for multi-project management where not every npm project will be using the same node version.