Closed Bugslive closed 2 months ago
I have the same error
@Bugslive You have a project under commonjs ?
Ok found issue. Something has changed on the build tooling and package.json with expected type
isn't generated. I'll fix that.
:tada: This issue has been resolved in version 7.80.2 :tada:
The release is available on:
v7.80.2
Your semantic-release bot :package::rocket:
@Bugslive it's fixed ;)
Thank you @Romakita. Have a good day
Describe the bug
Failed to run application. Ouput: `> npm start ..... (node:69028) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. [2024-08-26T15:55:17.887] [ERROR] [TSED] - /local_project/node_modules/@tsed/platform-log-middleware/lib/esm/index.js:4 export * from "./domain/PlatformLogMiddlewareSettings.js"; ^^^^^^
SyntaxError: Unexpected token 'export' at wrapSafe (node:internal/modules/cjs/loader:1383:18) at Module._compile (node:internal/modules/cjs/loader:1412:20) at Module._compile (/local_project/node_modules/source-map-support/source-map-support.js:568:25) at Module._extensions..js (node:internal/modules/cjs/loader:1551:10) at require.extensions..jsx.require.extensions..js (/private/var/folders/yv/gs10n_bd0q174_2v9_f3jjdw0000gn/T/ts-node-dev-hook-3104628146421098.js:114:20) at Object.nodeDevHook [as .js] (/local_project/node_modules/ts-node-dev/lib/hook.js:63:13) at Module.load (node:internal/modules/cjs/loader:1282:32) at Function.Module._load (node:internal/modules/cjs/loader:1098:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)`
To Reproduce
Expected behavior
Application should start and be able to handle requests.
Code snippets
No response
Repository URL example
No response
OS
macOS
Node version
Node v22.4.1
Library version
v7.80.x
Additional context
No response