You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,14 +174,11 @@ Add a new page to `website/pages/` which showcases the provider. If you don't wa
174
174
175
175
The new provider page can be tested locally by creating a distribution version of the package and referencing this from the `website`.
176
176
177
-
Unfortunately if you try to include the package locally from source you'll most likely run into a [Duplicate React](https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react) error.
178
-
179
177
To create the distribution version and reference it, do the following:
180
178
181
-
- In the root of the project, run `npm run build` to build the package into `dist`
182
-
- Update `website/package.json` to reference the `dist` build: `"react-live-chat-loader": "../"`
179
+
- In the root of the project, run `npm run build`
183
180
- In the `website` directory run `npm install`
184
181
- In the `website` directory run the server with `npm run dev`
185
182
- Add a new page to `website/pages/` which includes the new component
186
183
- Add a link to the provider in `website/pages/index.js`
187
-
- Add a link to the provider in `website/components/exampleLinks.js`
184
+
- Add a link to the provider in `website/components/exampleLinks.js`
0 commit comments