Skip to content

Upgrade to React Router 7 #24

@simonszalai

Description

@simonszalai

Prerequisites

Describe the issue

Hi,

I am in the process of upgrading my app to React Router 7 from Remix v2. According to the Remix author, it shouldn't be a breaking change as Remix effectively just wraps React Router at this point. After the upgrade, I am getting this error:

10:40:39 PM [vite] Error when evaluating SSR module /app/utils/_kinde.server.ts: failed to import "@kinde-oss/kinde-remix-sdk"
|- Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@remix-run/node' imported from /Users/simon/dev/amaru-web/node_modules/@kinde-oss/kinde-remix-sdk/dist/index.js
    at packageResolve (node:internal/modules/esm/resolve:844:9)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at nextResolve (node:internal/modules/esm/hooks:865:28)
    at resolveBase (file:///Users/simon/dev/amaru-web/node_modules/tsx/dist/esm/index.mjs?1739767225955:2:3212)
    at resolveDirectory (file:///Users/simon/dev/amaru-web/node_modules/tsx/dist/esm/index.mjs?1739767225955:2:3584)
    at resolveTsPaths (file:///Users/simon/dev/amaru-web/node_modules/tsx/dist/esm/index.mjs?1739767225955:2:4073)
    at resolve (file:///Users/simon/dev/amaru-web/node_modules/tsx/dist/esm/index.mjs?1739767225955:2:4447)
    at nextResolve (node:internal/modules/esm/hooks:865:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:303:30)

Is there a recommended approach for this upgrade? I assume it shouldn't be a huge issue to upgrade this package or maybe create another one specifically for React Router, maybe just the imports need to be updated? Any help would be appreciated!

Simon

Library URL

https://github.com/kinde-oss/kinde-remix-sdk

Library version

1.1.3

Operating system(s)

macOS

Operating system version(s)

Latest

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions