Skip to content

Commit 1ab029c

Browse files
BenjaminWFoxiaincollins
authored andcommitted
Update local environment setup steps to fix npm link problems per issue #472
1 parent d0dbacf commit 1ab029c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@ A quick and dirty guide on how to setup *next-auth* locally to work on it and te
5757
npm i
5858
npm run build
5959

60-
3. Link React between the repo and the version installed in your project:
60+
3. Link your project back to your local copy of next auth:
6161

62-
npm link ../your-application/node_modules/react
62+
cd ../your-application
63+
npm link ../next-auth
6364

64-
*This is an annoying step and not obvious, but is needed because of how React has been written (otherwise React crashes when you try to use the `useSession()` hook in your project).*
65+
4. Finally link React between the repo and the version installed in your project:
6566

66-
4. Finally link your project back to your local copy of next auth:
67+
cd ../next-auth
68+
npm link ../your-application/node_modules/react
6769

68-
cd ../your-application
69-
npm link ../next-auth
70+
*This is an annoying step and not obvious, but is needed because of how React has been written (otherwise React crashes when you try to use the `useSession()` hook in your project).*
7071

7172
That's it!
7273

0 commit comments

Comments
 (0)