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

Build fails in Deployment due to missing postinstall script #80

Open
RocketDav1d opened this issue Nov 19, 2024 · 0 comments
Open

Build fails in Deployment due to missing postinstall script #80

RocketDav1d opened this issue Nov 19, 2024 · 0 comments

Comments

@RocketDav1d
Copy link

Currently it does not work to deploy my NextJS webapp with flagpack.
During the Vercel build the error is thrown that the postinstall script for flagpack is not found

Steps to Reproduce

This is my package.json
{ "name": "app", "version": "0.2.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "postinstall": "react-flagpack" }, "dependencies": { … "react-flagpack": "^2.0.6", … }, }
I've also tried removing the postinstall command or like this "postinstall": "flags-postinstall", "postinstall": "npx react-flagpack"

Logs

The logs in the Vercel console complain about not found "flags-postinstall"
Screenshot 2024-11-19 at 1 17 52 PM

Your Environment

"react-flagpack": "^2.0.6"
"next": "^14.2.4"

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