Skip to content

Use of TypeScript 4.9 satisfies breaks build process #4639

@LunarMelody

Description

@LunarMelody

What version of Remix are you using?

1.7.6

Steps to Reproduce

  1. Create Remix app with yarn/your tool, I used blues stack
  2. Install TypeScript 4.9.3
  3. Create a type, something like
type SomethingCool = {
  foo: number;
}
  1. Try to create an object and use the new satisfies keyword with SomethingCool
  2. Try to build

Expected Behavior

The project builds

Actual Behavior

The project doesn't build and there's an error being thrown

$ remix build
Building Remix app in production mode...

✘ [ERROR] [plugin browser-route-module] Build failed with 1 error:
app/root.tsx:32:4: ERROR: Expected ";" but found "satisfies"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions