ReferenceError: Cannot determine intended module format because both require() and top-level await are present. If the code is intended to be CommonJS, wrap await in an async function. If the code is intended to be an ES module, replace require() with import.
at requireLoadAddon (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:53974:63)
... 6 lines matching cause stack trace ...
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:691:26) {
cause: ReferenceError: Cannot determine intended module format because both require() and top-level await are present. If the code is intended to be CommonJS, wrap await in an async function. If the code is intended to be an ES module, replace require() with import.
at requireLoadAddon (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:53974:63)
at requireNative$1 (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:53993:39)
at file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:54103:18
at requireLib$1 (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:54719:4)
at file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:54723:1
at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:691:26) {
code: 'ERR_AMBIGUOUS_MODULE_SYNTAX'
},
ReferenceError: Cannot determine intended module format because both require() and top-level await are present. If the code is intended to be CommonJS, wrap await in an async function. If the code is intended to be an ES module, replace require() with import.
at requireLoadAddon (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:53974:63)
... 6 lines matching cause stack trace ...
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:691:26) {
cause: ReferenceError: Cannot determine intended module format because both require() and top-level await are present. If the code is intended to be CommonJS, wrap await in an async function. If the code is intended to be an ES module, replace require() with import.
at requireLoadAddon (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:53974:63)
at requireNative$1 (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:53993:39)
at file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:54103:18
at requireLib$1 (file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:54719:4)
at file:///Users/lounesksouri/Developer/LNM/ln-markets.worktrees/admin-tanstack-start/apps/admin/.output/server/chunks/build/server.mjs:54723:1
at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:691:26) {
code: 'ERR_AMBIGUOUS_MODULE_SYNTAX'
},