react-flagpack
react-flagpack copied to clipboard
postinstall --framework gatsby fails due to not finding "/static"
Please check all that apply
- [ ] visual bug
- [X] functional bug
- [X] able to consistently reproduce
Expected Behavior
After adding the postinstall script in package.json ("postinstall": "react-flagpack --framework gatsby") and running npm install, the flags should be copied into a static/flags folder.
Current Behavior
Instead, the following error shows up, denoting a lack of "/static" directory. Note that "cd static" works as obviously the directory exists, but my guess is the / in front is causing the issue.
info React flagpack is copying flags to /static/flags error React flagpack failed to copy flags [Error: ENOENT: no such file or directory, mkdir '/static'] { errno: -2, code: 'ENOENT', syscall: 'mkdir', path: '/static' }
I'm on macOS, using Gatsby