Hello,
My project was working I got continually an error about Mesh-BVH on my project since I update my project to the “@needle-tools/engine”: “^3.47.6-beta”.
I used Mesh-BVH before needle add it in its dependencies.
“three-mesh-bvh”: “^0.7.8”,
And now, this error block my entire project :
X [ERROR] No matching export in “external:three-mesh-bvh” for import “MeshBVH”
node_modules/@needle-tools/engine/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js:2:9:
2 │ import { MeshBVH } from 'three-mesh-bvh';
╵ ~~~~~~~
17:06:56 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/@needle-tools/engine/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js:2:9: ERROR: No matching export in “external:three-mesh-bvh” for import “MeshBVH”
at failureErrorWithLog (C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:1575:15)
at C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:1033:28
at runOnEndCallbacks (C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:1447:61)
at buildResponseToResult (C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:1031:7)
at C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:1143:14
at responseCallbacks. (C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:680:9)
at handleIncomingPacket (C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:735:9)
at Socket.readFromStdout (C:\Users\aeist\OneDrive\Documents\Projets\withGit2\AligneursFrancaisNeedle_WithGit\Needle\newProject\node_modules\esbuild\lib\main.js:656:7)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Did somebody can help me about it ?