The default Storybook Babel config did not recognize the `public` keyword in our custom errors (e.g. `ExhaustivityCheckingError` and `RedactableError`). To fix this, we can use Storybook's V7 mode to supply a custom Babel config. This fixes the compilation error. See: https://storybook.js.org/docs/react/configure/babel
17 lines
240 B
JSON
17 lines
240 B
JSON
{
|
|
"sourceType": "unambiguous",
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"targets": {
|
|
"chrome": 100
|
|
}
|
|
}
|
|
],
|
|
"@babel/preset-typescript",
|
|
"@babel/preset-react"
|
|
],
|
|
"plugins": []
|
|
}
|