Hi. We are using Seed for deployment, and our Nex...
# help
ö
Hi. We are using Seed for deployment, and our Next application failed to build, which seems to be due to a postinstall script by
react-jax-parser
seed.yml
Copy code
before_build:
  - echo "Installing NextJS packages"
  - cd frontend && npm ci
Here is the log:
Copy code
$ cd /tmp/seed/source
INFO: Running before_build hook

$ echo "Installing NextJS packages"
0.07 s

$ cd frontend && npm ci
97.42 s
> styled-components@4.4.1 postinstall /tmp/seed/source/frontend/node_modules/styled-components
> node ./scripts/postinstall.js || exit 0
Use styled-components at work? Consider supporting our development efforts at <https://opencollective.com/styled-components>
> core-js@3.21.1 postinstall /tmp/seed/source/frontend/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> react-jsx-parser@1.29.0 postinstall /tmp/seed/source/frontend/node_modules/react-jsx-parser
> npx patch-package
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <<https://npm.community>>
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_cacache/_logs/2022-05-12T17_10_27_888Z-debug.log
Install for [ 'patch-package@latest' ] failed with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-jsx-parser@1.29.0 postinstall: `npx patch-package`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-jsx-parser@1.29.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-05-12T17_10_27_947Z-debug.log
ERROR: Failed to run: cd frontend && npm ci