File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,19 @@ React Query Rewind introduces a powerful DevTool extension designed to work in c
5353 npm i --save-dev @react-query-rewind/vue-query-rewind
5454 ```
5555
56- ** NextJS**
57- _ Some older versions of NextJS point to the
58-
59562 . Import the ReactQueryRewind component into the root of your applicaiton.
6057
61- _ picture of importing the component_
62-
6358 ``` javascript
6459 import ReactQueryRewind from " react-query-rewind" ;
6560 ```
6661
62+ _Note: Some older versions of NextJS default to the commonJS version of the package , causing apps to error_
63+ _If you encounter this error, import the component with:_
64+
65+ ` ` ` javascript
66+ import ReactQueryRewind from "../../node_modules/react-query-rewind/dist/esm/index.js";
67+ ` ` `
68+
67693. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.
6870
6971 ` ` ` javascript
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ React Query Rewind introduces a powerful DevTool extension designed to work in c
4141
42422. Import the ReactQueryRewind component into the root of your applicaiton.
4343
44- _picture of importing the component_
45-
4644 ` ` ` javascript
4745 import ReactQueryRewind from " react-query-rewind" ;
4846 ` ` `
You can’t perform that action at this time.
0 commit comments