Skip to content

SyntaxError: export 'TypeSystemPolicy' not found in '@sinclair/typebox/system' #1580

@Amurmurmur

Description

@Amurmurmur

What version of Elysia is running?

1.4.16

What platform is your computer?

Darwin 25.1.0 arm64 arm

What environment are you using

1.3.2

Are you using dynamic mode?

no

What steps can reproduce the bug?

bun create better-t-stack@latest elysia-issue --frontend tanstack-router --backend elysia --runtime bun --api orpc --auth better-auth --payments none --database postgres --orm drizzle --db-setup neon --package-manager bun --git --web-deploy none --server-deploy none --install --addons turborepo --examples todo

What is the expected behavior?

  1. Running a server with no issue

What do you see instead?

┌─ server#dev > cache bypass, force executing 96a6a0a8c4491f09 
$ bun run --hot src/index.ts
1 | })
2 | {
    ^
SyntaxError: export 'TypeSystemPolicy' not found in '@sinclair/typebox/system'
      at loadAndEvaluateModule (2:1)
└─ server#dev ──
┌─ native#dev > cache bypass, force executing e63a35ae809680ad 

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreviewWaiting for issue reporter approval

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions