karaggeorge / mac-screen-capture-permissions

Check and request permission to capture the screen
118 stars 35 forks source link

Module build failed: no such file. node_modules/cross-spawn/node_modules/path-key/index.js #9

Open andrewschreiber opened 3 years ago

andrewschreiber commented 3 years ago

I successfully yarn added this package to my Electron 11 application.

However when Typescript is compiling, I see this issue: Module build failed: Error: no such file or directory, open '/Users/andrewschreiber/git/focusbase/node_modules/cross-spawn/node_modules/path-key/index.js' node_modules/cross-spawn/node_modules/path-key/index.js

The error doesn't go away after yarn remove. I need to rm -rf node_modules & yarn cache clean, then run yarn again in order to return to a clean slate.