Skip to content

Commit adc47c3

Browse files
committed
fix vite-plugin-node-polyfills error
1 parent 2e81ce5 commit adc47c3

File tree

3 files changed

+39
-7
lines changed

3 files changed

+39
-7
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ For some reason, the file (here `test.lean`) cannot be at the root of the file s
4747
The package uses the Lean 4 VSCode extension, which is intended to run in a nodejs runtime. Therefore, we need to install node polyfills.
4848
Here is how this can be done if your project uses Vite:
4949
```
50-
npm install vite-plugin-node-polyfills memfs
50+
npm install [email protected] --save-exact
51+
npm install memfs
5152
```
53+
(We use version 0.17.0 due to this bug: https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/81)
5254

5355
```ts
5456
// vite.config.ts

Diff for: demo/package-lock.json

+35-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"eslint-plugin-react-refresh": "^0.4.7",
3030
"typescript": "^5.2.2",
3131
"vite": "^5.3.1",
32-
"vite-plugin-node-polyfills": "^0.22.0",
32+
"vite-plugin-node-polyfills": "=0.17.0",
3333
"vite-plugin-static-copy": "^1.0.6"
3434
}
3535
}

0 commit comments

Comments
 (0)