You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was rewriting my app in AdonisJS v6, and after updating the packages to the latest version, I started receiving the following error:
[ info ] starting HTTP server...
SyntaxError: Invalid or unexpected token
at (syntax error) SyntaxError: Invalid or unexpected token
To debug this, I started with a fresh AdonisJS installation using the api starter kit. When I created a model with the @computed() property, I encountered the same error, and the server wouldn’t even start.
If I remove that property, the server starts, but I get the following error:
Thanks for sharing the reproduction repo. The compiled output works fine, so it has to be something to do with SWC decorators support. Lemme debug further and see how that goes.
Package version
21.3.0
Describe the bug
I was rewriting my app in AdonisJS v6, and after updating the packages to the latest version, I started receiving the following error:
To debug this, I started with a fresh AdonisJS installation using the api starter kit. When I created a model with the
@computed()
property, I encountered the same error, and the server wouldn’t even start.If I remove that property, the server starts, but I get the following error:
I can query the database just fine using the database query builder, but the ORM fails. I’m using Node
v20.18.0
.It can be the possible duplicate of issue 1056
Reproduction repo
https://github.com/atharahmed/hello-world
The text was updated successfully, but these errors were encountered: