DEV Community

Discussion on: Dockerize Create-React-App in 3 minutes

Collapse
 
adamklepacz profile image
Adam Klepacz

Hey unfortunettlly this doesn't work

Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in /app/yarn.lock

I have a basic CRA app, build with YARN and this is an error that I'm getting when running

docker build -t react-app .
Collapse
 
ziv profile image
zivka

It seems to be related to yarn.lock file.
Try to add this file to dockerignore file and see if it’s still happen:)