3

I was using vmImage: ubuntu-latest. Getting many errors during build (npm run build) such as:

ERROR in ./src/components/*********/testCard.scss Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleNotFoundError: Module not found: Error: Can't resolve './green.png' in '/home/vsts/work/1/s/web/src/components/testCard'

Kotha Ramesh Babu
  • 355
  • 1
  • 4
  • 10

1 Answers1

4

All these run errors during build due to referred components are case sensitive when we use vmImage: ubuntu-latest.

To avoid those build errors, use vmImage: macOS-10.15 or latest macOs.

Kotha Ramesh Babu
  • 355
  • 1
  • 4
  • 10