Example code:
import * as React from "react";
import type {RowProps} from "./other-row.jsx";
type StaticProps = RowProps & {
domain: string,
};
class TableOfContentsRow extends React.Component<StaticProps> {
render() {
return <div>I'm a row</div>;
}
}
export default class TableOfContentsRowWithQuery extends React.Component<StaticProps> {
render() {
return <TableOfContentsRow/>;
}
}
Error:
ReferenceError: bpfrpt_proptype_RowProps is not defined
This error is trigged by the following code in the output:
_defineProperty(TableOfContentsRowWithQuery, \\"propTypes\\", Object.assign({}, bpfrpt_proptype_RowProps === _propTypes.default.any ? {} : _otherRow.bpfrpt_proptype_RowProps, {
domain: _propTypes.default.string.isRequired
}));"
Khan@f43dc40 contains the test case and a snapshot with the error.
Example code:
Error:
This error is trigged by the following code in the output:
Khan@f43dc40 contains the test case and a snapshot with the error.