BeerMoneyDev / nest-remix

An interop layer between NestJS and Remix
MIT License
51 stars 1 forks source link

[BUG]: Remix 1.14.1 regression breaks decorators with BABEL_PARSE_ERROR #2

Open SahidMiller opened 1 year ago

SahidMiller commented 1 year ago

Make sure these boxes are checked before submitting your issue, thank you!

Description of the bug

The following error is created when using @remix-run/dev@1.14.1 reverting back to 1.13.0 manually compiles fine.

//SyntaxError: /home/tns/Code/flipstarter-projects/anyonecanpay.me/packages/server/src/routes/hello-world.server.ts: Support for the experimental syntax 'decorators' isn't currently enabled (6:3):

export class HelloWorldBackend {
  @Loader()
  ^
  getMessage(
    @Query('defaultMessage') defaultMessage: string,
    @Query('counter', ParseIntPipe) _counter: number,

Steps To Reproduce

  1. Set @remix-run/dev to latest version ^1.14.1 in package.json
  2. Execute npm run start:dev

Which version of the app are you using?

0.0.1-alpha6

Additional Information

No response

Code of Conduct

KerryRitter commented 1 year ago

Two questions:

  1. How did you initialize the project?
  2. Is this a build error, or a VSCode error?

It appears the TSConfig doesn't have the expected config: "experimentalDecorators": true,. See https://github.com/BeerMoneyDev/nest-remix/blob/main/schematics/nest-remix/templates/tsconfig.json

If it does have that, you may need to restart your TypeScript language server in your IDE, or restart your IDE.