rosera / pet-theory

Pet Theory (Qwiklabs Quest)
GNU General Public License v3.0
98 stars 95 forks source link

Lab07/prod-frontend-billing crashing #60

Closed ablomm closed 7 months ago

ablomm commented 7 months ago

The Lab07/prod-frontend-billing will crash when running with docker. Here is the error message: thumbnail_Screenshot from 2024-04-03 21-49-20

I fixed this issue by simply changing the require('got') to import('got') in the render.js file

Reproduce:

Build the docker image Run the docker image Observe error

ablomm commented 7 months ago

See https://github.com/rosera/pet-theory/pull/61 for my fix

Thank you!

ablomm commented 7 months ago

https://github.com/sindresorhus/got

Warning: This package is native ESM and no longer provides a CommonJS export. If your project uses CommonJS, you will have to convert to ESM. Please don't open issues for questions regarding CommonJS / ESM.