#Error in renderToPipeableStream: TypeError: jsxDEV is not a function

6 messages · Page 1 of 1 (latest)

bitter oyster
#

Suddenly started this error in production server after build the app.
Any idea why it's happening.
Somehow the dev server works fine it's only happening in production build.

solid furnace
#

Same here:


[nitro 6:55:10 PM] ✔ You can preview this build using node .output/server/index.mjs
$ node .output/server/index.mjs
Listening on http://[::]:3000
TypeError: jsxDevRuntimeExports.jsxDEV is not a function
    at file:///Users/franciszekstodulski/Dev/@others/wizytka/apps/admin/.output/server/chunks/build/router-CgiRUjZq.mjs:4073:48
    ... 5 lines matching cause stack trace ...
    at async fetchHandler (file:///Users/franciszekstodulski/Dev/@others/wizytka/apps/admin/.output/server/index.mjs:2029:22) {
  cause: TypeError: jsxDevRuntimeExports.jsxDEV is not a function
      at file:///Users/franciszekstodulski/Dev/@others/wizytka/apps/admin/.output/server/chunks/build/router-CgiRUjZq.mjs:4073:48
      at ModuleJob.run (node:internal/modules/esm/module_job:370:25)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
      at async getEntries (file:///Users/franciszekstodulski/Dev/@others/wizytka/apps/admin/.output/server/chunks/build/server.mjs:19303:21)
      at async startRequestResolver (file:///Users/franciszekstodulski/Dev/@others/wizytka/apps/admin/.output/server/chunks/build/server.mjs:19360:33)
      at async fetchHandler (file:///Users/franciszekstodulski/Dev/@others/wizytka/apps/admin/.output/server/index.mjs:2029:22),
  status: 500,
  statusText: undefined,
  headers: undefined,
  data: undefined,
  body: undefined,
  unhandled: true
}

Freah new app

#

with only index - no demo, nothing..

opaque trout
solid furnace
#

Gonna be super hard.
My case is:

  • turborepo with package that have env.server.ts and env.client.ts

Im trying 2nd time to use Tanstack start instead of next.js - hard to reproduce it.
But i think it's connected to the .envs.

opaque trout
#

why is it super hard?