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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ npm i @solid-codemirror/codemirror
24
24
25
25
> **Note** The [@codemirror/state](https://github.com/codemirror/state) and [@codemirror/view](https://github.com/codemirror/state) libraries are flagged as peer dependencies and are recommeneded to be installed alongside this package.
26
26
27
+
## Known issue with `Vite`
28
+
27
29
> **Warning** You may encounter the following error if you're using Vite as your bundling tool:
Copy file name to clipboardExpand all lines: packages/codemirror/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,26 @@ npm i @solid-codemirror/codemirror
20
20
21
21
> **Note** The [@codemirror/state](https://github.com/codemirror/state) and [@codemirror/view](https://github.com/codemirror/state) libraries are flagged as peer dependencies and are recommeneded to be installed alongside this package.
22
22
23
+
## Known issue with `Vite`
24
+
25
+
> **Warning** You may encounter the following error if you're using Vite as your bundling tool:
26
+
>
27
+
> ```bash
28
+
> Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multipleinstances of @codemirror/state are loaded, breaking instanceof checks.
29
+
>```
30
+
>
31
+
>**Note**: This error can be fixed by adding the following configuration option to your `vite.config.{js,ts}` file.
32
+
>
33
+
>```typescript
34
+
>export default defineConfig({
35
+
> // Your configuration
36
+
> optimizeDeps: {
37
+
> // Add both @codemirror/state and @codemirror/view to included deps for optimization
0 commit comments