facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.54k stars 26.79k forks source link

Random static/MEDIA directory vs static/media #10256

Open codingpierogi opened 3 years ago

codingpierogi commented 3 years ago

Describe the bug

The build command is randomly creating static/MEDIA directory for font files which is causing issues when the app is deployed.

Did you try recovering your dependencies?

npm -v: 6.14.8 npm ls react-scripts: react-scripts@4.0.1 npm ls file-loader: -- react-scripts@4.0.1 -- file-loader@6.1.1

Which terms did you search for in User Guide?

Deployment, MEDIA

Environment

Environment Info:

current version of create-react-app: 3.4.1 running from

System: OS: Windows 7 6.1.7601 CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1585L v5 @ 3.00GHz Binaries: Node: 12.20.0 - Yarn: 1.22.10 - npm: 6.14.8 - Browsers: Internet Explorer: 11.0.9600.19867 npmPackages: react: ~17.0.1 => 17.0.1 react-dom: ~17.0.1 => 17.0.1 react-scripts: ~4.0.1 => 4.0.1 npmGlobalPackages: create-react-app: Not Found

Steps to reproduce

In a project with font files:

  1. Run npm run build

Expected behavior

I expect the static/media directory to be lowercase so that my app properly serves font files.

Actual behavior

I'm randomly receiving:

I:. └───static ├───css ├───js └───MEDIA

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

monmooney5523 commented 2 years ago

Old thread, but did you ever find a fix to this? We started randomly seeing the same issue

codingpierogi commented 2 years ago

Unfortunately never found a fix.

wenxinmao commented 2 years ago

we encountered the same issue today and randomly earlier days too.