Skip to content

Commit 9a67f7f

Browse files
fzaninottoamilosmanli
authored andcommittedMar 11, 2023
[doc] Fix Remix installation instructions
Closes marmelab#8654
1 parent 915ebe3 commit 9a67f7f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

‎docs/Remix.md

+18
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ cd remix-supabase-react-admin
3636
yarn add react-admin ra-data-json-server
3737
```
3838

39+
Remix and react-admin both install `react-router`, and due to the way each library handles its dependency, this results in duplicate packages. To avoid this, use [yarn resolutions](https://classic.yarnpkg.com/en/docs/selective-version-resolutions/) to force Remix to use the same version of `react-router` as react-admin. So add the following to the `package.json` file:
40+
41+
```js
42+
{
43+
// ...
44+
"resolutions": {
45+
"react-router": "6.8.1",
46+
"react-router-dom": "6.8.1"
47+
}
48+
}
49+
```
50+
51+
And call `yarn` again to install the dependencies:
52+
53+
```sh
54+
yarn
55+
```
56+
3957
Next, create the admin app component in `app/components/App.tsx`:
4058

4159
```jsx

0 commit comments

Comments
 (0)