[docs] add troubleshooting docs about production react errors (#133682)

This commit is contained in:
Spencer 2022-06-06 15:11:33 -07:00 committed by GitHub
parent ff21b0ee83
commit d7e6dc3c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,3 +40,12 @@ it means you are using a new Elasticsearch feature that will not work in a CCS e
We added this test coverage in version `8.1` because we accidentally broke core Kibana features (for example, when Discover started using the new fields parameter) for our CCS users. CCS is not a corner case and (excluding certain experimental features) Kibana should always work for our CCS users. This setting is our way of ensuring test coverage.
Please reach out to the [Kibana Operations team](https://github.com/orgs/elastic/teams/kibana-operations) if you have further questions.
### Minified React errors
If you experience minified React errors and want to expand them to their full error messages you will currently need to rebuild the `@kbn/ui-shared-deps-npm` package using "development" mode instead of "production", which can be done by modifying the corresponding line in `packages/kbn-ui-shared-deps-npm/webpack.config.js` and make sure to run `yarn kbn bootstrap` afterwards:
```diff
- mode: 'production',
+ mode: 'development',
```