electron-userland / electron-userland/electron-webpack

Can't resolve dependency

Open
#317 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

* **Version**: 21.2

* **Target**: mac

Hi. we've been using this project lately and must praise you for the effort you built into it.

I do have an issue with some dependency. At first, I thought it might have been the specific dependency, but the warnings started to show up for more dependencies lately, so this might be a problem with my config.

Whenever I build or run the dev-server, I get warnings like this:
```
WARNING in ./node_modules/websocket/lib/BufferUtil.js
Module not found: Error: Can't resolve '../build/default/bufferutil' in '/electron/node_modules/websocket/lib'
```

Here are my `devDependencies`
```
{
"@types/websocket": "^0.0.40",
"concurrently": "^4.1.2",
"electron": "6.0.3",
"electron-builder": "^21.2.0",
"electron-is-dev": "^1.1.0",
"electron-reload": "^1.5.0",
"electron-webpack": "^2.7.4",
"electron-webpack-ts": "^3.2.0",
"electron-window-state": "^5.0.3",
"node-pre-gyp": "^0.13.0",
"typescript": "^3.5.3",
"wait-on": "^3.3.0",
"webpack": "~4.39.2",
"websocket": "^1.0.29"
}
```
Any hint of what might be wrong here would be greatly appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.