From a2943718a9ab030e26190692a61b0767c92efe6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Xalambr=C3=AD?= Date: Fri, 6 Oct 2023 00:31:09 -0500 Subject: [PATCH] Mention using moduleResolution: Bundler --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 00402c2..17cdfc5 100644 --- a/README.md +++ b/README.md @@ -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: