Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postinstall --framework gatsby fails due to not finding "/static" #83

Open
2 of 3 tasks
davidmikan opened this issue Jan 26, 2025 · 0 comments
Open
2 of 3 tasks

Comments

@davidmikan
Copy link

Please check all that apply

  • visual bug
  • functional bug
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant