Skip to content

Commit

Permalink
Add known issue to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
j-chmielewski committed Aug 26, 2024
1 parent f3b58de commit 8b00899
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ The app launches but the window is blank. Set the `WEBKIT_DISABLE_DMABUF_RENDERE
WEBKIT_DISABLE_DMABUF_RENDERER=1 defguard-client
```

## Failed to run `pnpm tauri dev`

`pnpm tauri dev` command may result in the following error:

```
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/jck/workspace/work/teonite/defguard/client/node_modules/.pnpm/[email protected]/node_modules/path-type/index.js from /home/jck/workspace/work/teonite/defguard/client/node_modules/.pnpm/[email protected]/node_modules/read-pkg/index.js not supported.
Instead change the require of /home/jck/workspace/work/teonite/defguard/client/node_modules/.pnpm/[email protected]/node_modules/path-type/index.js in /home/jck/workspace/work/teonite/defguard/client/node_modules/.pnpm/[email protected]/node_modules/read-pkg/index.js to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object.<anonymous> (/home/jck/workspace/work/teonite/defguard/client/node_modules/.pnpm/[email protected]/node_modules/read-pkg/index.js:4:18) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v22.7.0
 ELIFECYCLE  Command failed with exit code 1.
Error The "beforeDevCommand" terminated with a non-zero status code.
 ELIFECYCLE  Command failed with exit code 1.
```

To fix this remove node_modules and rerun `pnpm install`.

# Legal

- *defguard is not an official WireGuard project, and WireGuard is a registered trademark of Jason A. Donenfeld.*

0 comments on commit 8b00899

Please sign in to comment.