# 0hmx - AI is doing this a lot## Browser Impor... Channel: #contributor Source: https://discord.com/channels/1233487248129921135/1535416889839190198 Started: 2026-08-07T22:38:33.601000+00:00 Last activity: 2026-08-07T22:41:22.542000+00:00 ## 0hmx — 2026-08-07T22:38:33.204000+00:00 AI is doing this a lot ## Browser Import Error The error occurred because the AI used a directory import: ```ts import { Part } from "./imports" ``` Node.js and Bun automatically resolve this to `./imports/index.ts`, but the browser evaluator may not. Use an explicit path instead: ```ts import { Part } from "./imports/index" ``` Or import the file directly: ```ts import { Part } from "./imports/Part" ``` The mistake was assuming all environments use Node-style import resolution. For reliable tscircuit code, idk what is the best ## 0hmx — 2026-08-07T22:41:10.350000+00:00 because tsci build works with './imports' the ai can not see this error will happen in the browser. and './imports' will not work ## 0hmx — 2026-08-07T22:41:22.542000+00:00 it has to give the full path