auth0-react-samples
auth0-react-samples copied to clipboard
#15 5.788 Cannot find file './auth_config.json' in './src'. Error
Hi,
I am trying to run the react js demo app. When I run the docker image, I get the output below.
I got the same error when building from source.
[+] Building 78.0s (15/21)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 737B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 268B 0.0s
=> [internal] load metadata for docker.io/library/node:10-alpine 1.7s
=> [stage-1 1/10] FROM docker.io/library/node:10-alpine@sha256:dc98dac24efd4254f75976c40bce46944697a110d06ce7fa47e7268470cf2e28 3.0s
...
=> [internal] load build context 0.1s
=> => transferring context: 2.00MB 0.0s
=> [stage-1 2/10] RUN mkdir -p /app/build 0.7s
=> [build 2/8] RUN apk update && apk upgrade && apk add --no-cache bash git openssh yarn 3.9s
=> [stage-1 3/10] RUN apk update && apk upgrade && apk add yarn git 4.9s
=> [build 3/8] RUN mkdir /app 0.4s
=> [build 4/8] WORKDIR /app 0.0s
=> [build 5/8] COPY package.json . 0.0s
=> [build 6/8] RUN yarn install 62.9s
=> [stage-1 4/10] WORKDIR /app 0.0s
=> [build 7/8] COPY . . 0.0s
=> ERROR [build 8/8] RUN yarn build 5.9s
------
> [build 8/8] RUN yarn build:
#15 0.546 yarn run v1.22.5
#15 0.598 $ react-scripts build
#15 2.356 Creating an optimized production build...
#15 5.787 Failed to compile.
#15 5.787
#15 5.788 ./src/config.js
#15 5.788 Cannot find file './auth_config.json' in './src'.
#15 5.788
#15 5.788
#15 5.830 error Command failed with exit code 1.
#15 5.830 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
executor failed running [/bin/sh -c yarn build]: exit code: 1
Unable to find image 'auth0-react-02-calling-an-api:latest' locally
docker: Error response from daemon: pull access denied for auth0-react-02-calling-an-api, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
Hi @gryslik, Did you try the steps mentioned here - Configure credentials It will help you configure the credentials.