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'

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Case sensitive was exactly the problem, and I couldn't get it locally because I was running on a Windows machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.