Clean up remaining upstream diff #4
Annotations
2 errors
Run cd packages/instanceserver && npm run test:
packages/spatial/src/physics/types/PhysicsTypes.ts#L1
SyntaxError: Cannot use import statement outside a module
β― ../spatial/src/physics/types/PhysicsTypes.ts:1:1
β― ../engine/src/gltf/GLTFComponent.tsx:7:31
β― tests/InstanceLoad.test.ts:14:32
Module /home/runner/work/ir-engine/ir-engine/node_modules/@dimforge/rapier3d-compat/rapier.cjs.js:2 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "@dimforge/rapier3d-compat" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"@dimforge/rapier3d-compat"
]
}
}
}
}
|
Run cd packages/instanceserver && npm run test
Process completed with exit code 1.
|
Loading