Skip to content

Commit 789327c

Browse files
committed
docs: add note about Webpack
1 parent c47d4cd commit 789327c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,15 @@ const { askForAccessibilityAccess } = require('node-mac-permissions')
169169

170170
askForAccessibilityAccess()
171171
```
172+
173+
## FAQ
174+
175+
Q. I'm seeing an error like the following when using webpack:
176+
177+
```sh
178+
App threw an error during load
179+
TypeError: Cannot read property 'indexOf' of undefined
180+
at Function.getFileName (webpack-internal:///./node_modules/bindings/bindings.js:178:16)
181+
```
182+
183+
A. This error means that webpack packed this module, which it should not. To fix this, you should configure webpack to use this module externally, e.g explicitly not pack it.

0 commit comments

Comments
 (0)