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: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,15 @@ Add this to your `index.html`:
122
122
</html>
123
123
```
124
124
125
+
> **Note:** If you use Vite in [Express middleware mode](https://vite.dev/guide/ssr#setting-up-the-dev-server) (e.g. Replit starter templates), the inline script can cause `Failed to parse JSON file` errors when Chromium DevTools is open. For these setups, import from your entry file instead:
Copy file name to clipboardExpand all lines: packages/grab/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,15 @@ Add this to your `index.html`:
122
122
</html>
123
123
```
124
124
125
+
> **Note:** If you use Vite in [Express middleware mode](https://vite.dev/guide/ssr#setting-up-the-dev-server) (e.g. Replit starter templates), the inline script can cause `Failed to parse JSON file` errors when Chromium DevTools is open. For these setups, import from your entry file instead:
Copy file name to clipboardExpand all lines: packages/react-grab/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,15 @@ Add this to your `index.html`:
122
122
</html>
123
123
```
124
124
125
+
> **Note:** If you use Vite in [Express middleware mode](https://vite.dev/guide/ssr#setting-up-the-dev-server) (e.g. Replit starter templates), the inline script can cause `Failed to parse JSON file` errors when Chromium DevTools is open. For these setups, import from your entry file instead:
Copy file name to clipboardExpand all lines: packages/website/public/install.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,15 @@ Add to `index.html`:
126
126
</head>
127
127
```
128
128
129
+
> **Note:** If you use Vite in [Express middleware mode](https://vite.dev/guide/ssr#setting-up-the-dev-server) (e.g. Replit starter templates), the inline script can cause `Failed to parse JSON file` errors when Chromium DevTools is open. For these setups, import from your entry file instead:
130
+
>
131
+
> ```tsx
132
+
>// src/main.tsx
133
+
>if (import.meta.env.DEV) {
134
+
> import("react-grab");
135
+
> }
136
+
>```
137
+
129
138
#### Webpack
130
139
131
140
Add to your main entry file (e.g., `src/index.tsx`):
0 commit comments