Skip to content

Commit 53e9b83

Browse files
committed
update readme
1 parent 6c2e78e commit 53e9b83

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,21 @@ export default defineConfig({
6363
```
6464

6565
For a full example check the [example](https://github.com/webxdc/vite-plugins/tree/main/example) folder.
66+
67+
## Troubleshooting
68+
69+
if you get this error when using vite:
70+
71+
```
72+
✘ [ERROR] Failed to resolve "@webxdc/vite-plugins". This package is ESM only but it was tried to load by `require`.
73+
```
74+
75+
to fix it you need to set in your `package.json`:
76+
77+
```json
78+
{
79+
...
80+
"type": "module",
81+
...
82+
}
83+
```

0 commit comments

Comments
 (0)