Closed ryo-yamaoka closed 5 years ago
Hi @ryo-yamaoka , is it possible for you to you share your .circleci/config.yml
or a simple config that reproduces the issue? There currently isn't enough information for me to reproduce this. It sounds like npx
runs inside of a Docker container, but it's unclear what the Docker container is.
Thanks for response, and sorry for lack information.
It is faied to npm run build
. I executed npx react-scripts build
for break down issue, then it's failed.
However, this issue isn't occur in the docker run -it mercari/appengine-go:1.9 /bin/bash
environment by hand operation.
In addition to that I tried same operation another container environment, but it isn't occur to same. (for ex. circleci/golang:1.9, golang:1.9, etc...)
Thank you for the additional information. My hypothesis is that circleci local execute
is running with the environment variable setting CI=true
. This message is the key:
(On circleci local execute
)
Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically.
(On your local by-hand reproduction)
Creating an optimized production build... Compiled with warnings.
To check this hypothesis, can you re-run your operation by hand including export CI=true
before npm run build --loglevel silly
?
I've reappeared error in docker run
environment by export CI=true
, then it solved by set export CI=false
in circleci local execute
environment.
I understand error cause, maybe I can resolve remaining issue.
Thank you very much!
Do you want to request a feature or report a bug?
bug (?)
What is the current behavior?
npx react-scripts build
command failed.This issue is occurring only in the
circleci local execute
and CircleCI service environment.It is not occurring in my local PC execute and hand operation (copy & paste command from
.circleci/config.yml
) indocker container run -it xxx /bin/bash
.What is the expected behavior?
success
npx
command in thecircleci local execute
and CircleCI service environment.Which version of the CLI and OS are you using? Did this work in previous versions?
And don't work in previous versions.
If you have any questions, feel free to ping us at @CircleCI-Public/dx-clients.
Please tell me what different between
docker run
andcircleci local execute
environment.