Skip to content

Commit 30139a6

Browse files
committed
updated readme
1 parent 05af5f6 commit 30139a6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
5956
2. 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+
6769
3. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.
6870

6971
```javascript

package-react/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ React Query Rewind introduces a powerful DevTool extension designed to work in c
4141

4242
2. 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
```

0 commit comments

Comments
 (0)