DEV Community

Discussion on: Creating an app with Docker Compose, Django, and Create React App

Collapse
 
hahnsangkim profile image
H. Kim • Edited

Hi Craig

Thank you for the tutorial. It scratches my back happily~. Appreciate it!
I have an issue while following your instructions. I installed axios in success and then after editing App.js according to the code in the end and tried to build as follows

docker-compose up --build

I got this error

frontend_1  | Starting the development server...
frontend_1  | 
frontend_1  | Failed to compile.
frontend_1  | 
frontend_1  | ./src/App.js
frontend_1  | Module not found: Can't resolve 'axios' in '/app/src'

Do you have any ideas about what's wrong and what I'm missing?
Thank you and I look forward to your feedback soon~

Collapse
 
hahnsangkim profile image
H. Kim

Never mind. I forgot to uncomment lines in Dockerfile within frontend.
Afterward, it works.