#39

Error after "bun run dev"

Opennico-nxopened 8mo ago

Environment

Hi,

I do a "bun run dev", then go to my browser https://localhost:3000, I get the following error:

H3Error {▼ message: "null is not an object (evaluating 'currentRenderingInstance.ce')", cause: TypeError {▼}, statusCode: 500, fatal: false, unhandled: false, statusMessage: undefined, data: undefined, originalLine: 217, originalColumn: 26, line: 71, column: 19, sourceURL: 'C:\\nxdh\\workspace\\knowledge-agent-template\\node_modules\\.bun\\h3@1.15.5\\node_modules\\h3\\dist\\index.mjs', stack: "null is not an object (evaluating 'currentRenderingInstance.ce')\n" + 'at renderSlot (C:/nxdh/workspace/knowledge-agent-template/node_modules/.bun/@vue+runtime-core@3.5.29/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3211:7)\n' + 'at renderComponentRoot (C:/nxdh/workspace/knowledge-agent-template/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4499:16)\n' + 'at renderComponentSubTree (C:/nxdh/workspace/knowledge-agent-template/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:756:28)\n' + 'at _sfc_ssrRender (C:/nxdh/workspace/knowledge-agent-template/node_modules/.bun/@nuxt+ui@4.5.0+a47e4899328a6eb9/node_modules/@nuxt/ui/dist/runtime/components/App.vue:58:53)\n' + 'at renderComponentSubTree (C:/nxdh/workspace/knowledge-agent-template/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:739:9)\n' + 'at _sfc_ssrRender (C:/nxdh/workspace/knowledge-agent-template/apps/app/app/app.vue:77:54)\n' + 'at renderComponentSubTree (C:/nxdh/workspace/knowledge-agent-template/node_modules/@vue/server-r'... 503 more characters, __nuxt_error: true, status: [Getter] statusText: [Getter] }

Could you please help ? Thanks !

Regards, Nicolas

Version

v0.1.0

Reproduction

  1. bun run dev
  2. go to browser https://localhost:3000
  3. I get the error shown in description

Description

Error on login page

Additional context

Windows 11, Google Chrom

Logs

undefined

Activity

4
HugoRCD8mo ago

I'm going to need more information. Are these really all the steps you've taken? Are the environment variables set, etc.? 🤔

nico-nx8mo ago

Hi @HugoRCD ,

Yes, that's all what I did. To be more complete: 1: bun install 2: rename/edit apps/app/.env : I entered the 3 variables BETTER_AUTH_SECRET, GITHUB_CLIENT_ID & GITHUB_CLIENT_SECRET 3: bun run dev 4: go to my browser https://localhost:3000/

Hope it helps. Regards, Nicolas

Rana-Faraz7mo ago

I had the same error it was a malfunctioned node_modules problem deleted and reinstalled it worked for me

ktx-hensy7mo ago

Error: Unknown file extension ".ts" for D:\KTX\KTX-hensy\chatsdk\knowledge-agent-template\apps\app\server\utils\sandbox\context.ts

Stack trace: at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:218:9) at defaultGetFormat (node:internal/modules/esm/get_format:244:36) at defaultLoad (node:internal/modules/esm/load:122:22) at async ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:483:32)

i get this above error in the ui on http://loclahost:3000 in the terminal i don't get any error but in the ui i get this