3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
@@ -81,6 +81,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
-[`npm test` hangs on macOS Sierra](#npm-test-hangs-on-macos-sierra)
-[`npm run build` silently fails](#npm-run-build-silently-fails)
-[`npm run build` fails on Heroku](#npm-run-build-fails-on-heroku)
-[Moment.js locales are missing](#momentjs-locales-are-missing)
-[Something Missing?](#something-missing)
## Updating to New Releases
...
...
@@ -1616,6 +1617,32 @@ It is reported that `npm run build` can fail on machines with no swap space, whi
This may be a problem with case sensitive filenames.
Please refer to [this section](#resolving-heroku-deployment-errors).
### Moment.js locales are missing
If you use a [Moment.js](https://momentjs.com/), you might notice that only the English locale is available by default. This is because the locale files are large, and you probably only need a subset of [all the locales provided by Moment.js](https://momentjs.com/#multiple-locale-support).
To add a specific Moment.js locale to your bundle, you need to import it explicitly.<br>
For example:
```js
importmomentfrom'moment';
import'moment/locale/fr';
```
If import multiple locales this way, you can later switch between them by calling `moment.locale()` with the locale name:
```js
importmomentfrom'moment';
import'moment/locale/fr';
import'moment/locale/es';
// ...
moment.locale('fr');
```
This will only work for locales that have been explicitly imported before.
## Something Missing?
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/packages/react-scripts/template/README.md)