You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ yarn build
yarn run v1.22.19
$ strapi build
[INFO] The Strapi admin needs to install the following dependencies:
- react@^18.0.0
- react-dom@^18.0.0
- react-router-dom@^5.0.0
- styled-components@^5.0.0
? Would you like to install these dependencies now? These are not required but are recommended, from V5 these will be required. (Y/n)
This halts the build process while waiting for interaction, which then timeouts out in the build system, causing the whole build to fail.
Strapi/admin should only produce this prompt if NODE_ENV is set to development. HOWEVER, the default for NODE_ENV if not explicitly set is default. 🤦 X 2.
Easiest solution for now is to explicitly set NODE_ENV to production.
Include some logs
yarn run v1.22.5
$ strapi build
[INFO] The Strapi admin needs to install the following dependencies:
- react@^18.0.0
- react-dom@^18.0.0
- react-router-dom@^5.0.0
- styled-components@^5.0.0
? Would you like to install these dependencies now? These are not required but
W: error Command failed with exit code 130.
are recommended, from V5 these will be required. (Y/n) info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
E: Error building project: Step failed with status code 130.
E: Error: Unable to build application, aborting.
Reproducing
Update strapi/strapi to 4.15.1
commit yarn.lock
run yarn build
Expected behavior
Should be listed as a warning in stdout
Your environment
n/a
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
@strapi/admin at v4.15.1 introduced a warning about needing new dependencies and then prompts the user if they want to install them. 🤦
This halts the build process while waiting for interaction, which then timeouts out in the build system, causing the whole build to fail.
Strapi/admin should only produce this prompt if
NODE_ENV
is set todevelopment
. HOWEVER, the default forNODE_ENV
if not explicitly set isdefault
. 🤦 X 2.Easiest solution for now is to explicitly set
NODE_ENV
toproduction
.Include some logs
Reproducing
yarn build
Expected behavior
Should be listed as a warning in stdout
Your environment
n/a
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: