Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

TypeError after dataset selection button click #113

@adamws

Description

@adamws

On clean master checkout afer bun run start and clicking single-trace button on fronted I get following error:

aws:autorouting/ (main✗) $ bun run start
$ nodemon --watch frontend --watch module --ext ts,tsx frontend --exec 'bun run build-and-serve'
[nodemon] 3.1.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): frontend/**/* module/**/*
[nodemon] watching extensions: ts,tsx
[nodemon] starting `bun run build-and-serve frontend`
$ bun run build && bun --hot module/cli.ts server start frontend
$ vite build && make-vfs --dir ./frontend-dist --content-format string --outfile ./dist/vfs.js
vite v5.4.19 building for production...
✓ 386 modules transformed.
../frontend-dist/index.html           0.42 kB │ gzip:   0.30 kB
../frontend-dist/assets/index.js  1,149.26 kB │ gzip: 327.52 kB

(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 2.50s
Starting dev server...
Server running on http://localhost:3080/
Error generating problem: Attempting to define property on object that is not extensible.

TypeError: Attempting to define property on object that is not extensible.
    at render (/home/aws/git/autorouting/node_modules/@tscircuit/core/dist/index.js:8565:5)
    at getCircuitJson (/home/aws/git/autorouting/node_modules/@tscircuit/core/dist/index.js:8591:45)
    at renderCircuitToSoup (/home/aws/git/autorouting/module/lib/generator-utils/renderCircuitToSoup.ts:5:3)
    at <anonymous> (/home/aws/git/autorouting/module/lib/generators/single-trace/index.tsx:13:13)
    at <anonymous> (/home/aws/git/autorouting/module/lib/generators/single-trace/index.tsx:9:70)
    at <anonymous> (/home/aws/git/autorouting/module/lib/generators/utils/with-check-regenerate.ts:29:22)
    at <anonymous> (/home/aws/git/autorouting/module/lib/generators/utils/with-check-regenerate.ts:28:17)
    at <anonymous> (/home/aws/git/autorouting/module/lib/server/server-entrypoint.ts:90:67)
    at serverEntrypoint (/home/aws/git/autorouting/module/lib/server/server-entrypoint.ts:24:3)
    at <anonymous> (/home/aws/git/autorouting/module/lib/server/start-dev-server.ts:23:43)
    at emit (node:events:98:22)
    at onNodeHTTPRequest (node:_http_server:633:24)
Error generating problem: Attempting to define property on object that is not extensible.

I'm not super familiar with js/ts ecosystem - this might just as well be problem on my side. Did not investigate further.

These are installed package versions:

aws:autorouting/ (main✗) $ bun pm ls
/home/aws/git/autorouting node_modules (1423)
├── @biomejs/biome@1.8.3
├── @dagrejs/graphlib@2.2.3
├── @timohausmann/quadtree-ts@2.2.2
├── @tscircuit/checks@0.0.28
├── @tscircuit/core@0.0.416
├── @tscircuit/math-utils@0.0.18
├── @tscircuit/pcb-viewer@1.4.5
├── @tscircuit/props@0.0.184
├── @tscircuit/soup-util@0.0.41
├── @types/bun@1.2.0
├── @types/d3-delaunay@6.0.4
├── @types/debug@4.1.12
├── @types/mersenne-twister@1.1.7
├── @types/node@20.14.12
├── @types/pathfinding@0.0.9
├── @types/react@18.3.3
├── @types/react-dom@18.3.0
├── @vercel/node@3.2.23
├── @vitejs/plugin-react@4.3.1
├── bun-match-svg@0.0.3
├── circuit-json@0.0.183
├── circuit-json-to-connectivity-map@0.0.17
├── circuit-to-svg@0.0.87
├── commander@12.1.0
├── concurrently@8.2.2
├── d3-delaunay@6.0.4
├── debug@4.3.6
├── graphics-debug@0.0.4
├── kleur@4.1.5
├── madge@8.0.0
├── make-vfs@1.1.0
├── mersenne-twister@1.1.0
├── nanoid@5.0.7
├── next@15.0.1
├── nodemon@3.1.4
├── pathfinding@0.4.18
├── performance-now@2.1.0
├── raw-body@3.0.0
├── react-dom@18.3.1
├── react-error-boundary@4.0.13
├── react-query@3.39.3
├── tscircuit@0.0.258
├── typescript@5.6.3
├── vite@5.3.5
└── vite-plugin-singlefile@2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions