Closed sridaradappt closed 3 years ago
Could you provide a reproduction case? That would make it easier for me to debug :D
@sridaradappt you need to change the .babelrc
file to the following and install the babel plugins:
{
"presets": ["next/babel"],
"plugins": [
"babel-plugin-transform-typescript-metadata",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose" : true }]
]
}
I just created a simple get method which requests id and returns some data. It returns data when compiling
this is my code in app.controller.ts
error ] ./src/backend/app/app.controller.ts 11:10 Module parse failed: Unexpected character '@' (11:10) File was processed with these loaders:
Any Idea how to fix ?