Skip to content

Type error: 'from' expected - 2.35.8 #399

@bundyfx

Description

@bundyfx

[email protected]
[email protected]
@react-spring/[email protected]
@react-three/[email protected]
@react-three/[email protected]

Problem description:

Building (npm run build) causes the below issue now (as a few hours ago -> 2.35.8)

./node_modules/three-stdlib/index.d.ts:1:10
Type error: 'from' expected.

1 | export * type from './misc/MD2CharacterComplex.d.ts';
| ^
2 | export * type from './misc/ConvexObjectBreaker.d.ts';
3 | export * type from './misc/MorphBlendMesh.d.ts';
4 | export * type from './misc/GPUComputationRenderer.d.ts';
Static worker exited with code: 1 and signal: null
Error: Command "npm run build" exited with 1

Suggested solution:

I had to patch this back to -> export type * from './misc/xxxx.d.ts';
as "export * type from './misc/xxxx.d.ts';" is not valud exporting format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions