gkjohnson / three-mesh-bvh

A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
https://gkjohnson.github.io/three-mesh-bvh/example/bundle/raycast.html
MIT License
2.38k stars 247 forks source link

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file #652

Closed shaofahui closed 3 months ago

shaofahui commented 3 months ago

After i npm I three-mesh bvh, I import {computeBoundsTree, disposeBoundsTree, acceleratedRaycast} from 'three-mesh-bvh' in a js file, and the console reports an error: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.

gkjohnson commented 3 months ago

This sounds like a build process issue - I recommend reading up on the documentation for your build system or asking at relevant forums.