Hi,
I’m developing a panel plugin in typescript. I want to use a typescript decorator.
I get the following error:
Module build failed (from ../node_modules/swc-loader/src/index.js):
Error:
× Unexpected token `@`. Expected identifier, string literal, numeric literal or [ for the computed key
Even adding "experimentalDecorators": true
to the tsconfig.json and/or installing the npm install @babel/plugin-proposal-decorators
does not solve the situation.
Does anybody know how to solve it?