-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unexpected "export" statement in ES module "PlatformLogMiddlewareSettings.js" #2795
Comments
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 |
🎉 This issue has been resolved in version 7.80.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@Bugslive it's fixed ;) |
Thank you @Romakita. Have a good day |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: