You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error "config must export or return an object" should not occur.
Removing import '@babylonjs/loaders' will prevent any errors from occurring.
I suspect it might be due to the filename KHR_animation_pointer.data.js, which might cause VitePress to mistakenly identify it as a data loader, leading to this error.
If my guess is correct, might there be a need for a way to exclude specific files?
System Info
@babylonjs/loaders: 7.43.0
vitepress: 1.5.0
Additional context
vitepress build docs
vitepress v1.5.0
⠇ building client + server bundles...failed to load config from /home/projects/vite-v1c8np4w/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js
x Build failed in 3.63s
✖ building client + server bundles...
build error:
[commonjs--resolver] Could not load /home/projects/vite-v1c8np4w/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js: config must export or return an object.
[commonjs--resolver] Could not load /home/projects/vite-v1c8np4w/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js: config must export or return an object.
at Module.loadConfigFromFile (file:///home/projects/vite-v1c8np4w/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66589:13)
at async Object.load (file:///home/projects/vite-v1c8np4w/node_modules/vitepress/dist/node/chunk-DMuPggCS.js:44533:21)
Describe the bug
Using
@babylonjs/loaders
will cause an error during the build phase:KHR_animation_pointer.data.js
: config must export or return an object.Reproduction
https://stackblitz.com/edit/vite-v1c8np4w
Run
npm run docs:build
.Expected behavior
The error "config must export or return an object" should not occur.
Removing
import '@babylonjs/loaders'
will prevent any errors from occurring.I suspect it might be due to the filename
KHR_animation_pointer.data.js
, which might cause VitePress to mistakenly identify it as adata loader
, leading to this error.If my guess is correct, might there be a need for a way to exclude specific files?
System Info
Additional context
vitepress v1.5.0
⠇ building client + server bundles...failed to load config from /home/projects/vite-v1c8np4w/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js
x Build failed in 3.63s
✖ building client + server bundles...
build error:
[commonjs--resolver] Could not load /home/projects/vite-v1c8np4w/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js: config must export or return an object.
[commonjs--resolver] Could not load /home/projects/vite-v1c8np4w/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js: config must export or return an object.
at Module.loadConfigFromFile (file:///home/projects/vite-v1c8np4w/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66589:13)
at async Object.load (file:///home/projects/vite-v1c8np4w/node_modules/vitepress/dist/node/chunk-DMuPggCS.js:44533:21)
Validations
The text was updated successfully, but these errors were encountered: