Skip to content

Commit

Permalink
Mention using moduleResolution: Bundler (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa authored Oct 6, 2023
1 parent e5795af commit a9d6f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ In case you don't have one, if you're using Remix v1 it will be CJS and if you'r
> **Note**
> Some of the optional dependencies in Remix Utils may still be published as CJS, so you may need to add them to `serverDependenciesToBundle` too.
Another thing to consider if you did the upgrade from Remix v1 to Remix v2 is that in your `tsconfig.json` you will need to set `"moduleResolution": "Bundler"`, otherwise TS will not resolve the new import paths.

#### Updated Import Paths

You will need to change your imports to use the correct one. So instead of doing:
Expand Down

0 comments on commit a9d6f38

Please sign in to comment.