mac-screen-capture-permissions icon indicating copy to clipboard operation
mac-screen-capture-permissions copied to clipboard

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

Open andrewschreiber opened this issue 3 years ago • 0 comments

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.

andrewschreiber avatar Mar 15 '21 07:03 andrewschreiber