NotionX / react-notion-x

Fast and accurate React renderer for Notion. TS batteries included. ⚡️
https://react-notion-x-demo.transitivebullsh.it
MIT License
4.87k stars 570 forks source link

Error while installing dependencies #120

Closed beevk closed 2 years ago

beevk commented 3 years ago

I just cloned the repo and switched to the example directory.

    npm i

This gives unable to resolve dependency tree error. This happens because react-notion-x has peer dependency on react and the version doesn't match. Please fix it.

beevk commented 3 years ago

Please update the React version to 17.0.2 so it can be used with NextJS 11.

MichaelCasaDev commented 3 years ago

Try installing packages with npm i --legacy-peer-deps

transitive-bullshit commented 2 years ago

This should be fixed in v6.

Note: this repo uses yarn workspaces so you have to run yarn once at the root before starting.

After that, you can run yarn dev or yarn build from any of the example directories.