Skip to content

Build fails in Deployment due to missing postinstall script #80

Description

@RocketDav1d

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions