Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webpack 5.72.0 compiled successfully in 42110 ms
- Issues checking in progress...
- ERROR in src/CurrentUserContext.tsx:24:48
- TS2339: Property 'children' does not exist on type '{}'.
- 22 | }
- 23 |
- > 24 | export const CurrentUserContext: React.FC = ({ children }) => {
- | ^^^^^^^^
- 25 | const [user, setUser] = useState<UserState>({
- 26 | current: undefined,
- 27 | loading: true,
- ERROR in src/root.component.tsx:14:6
- TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.
- 12 | const Root: React.FC<RootProps> = ({ isLoginEnabled }) => {
- 13 | return (
- > 14 | <CurrentUserContext>
- | ^^^^^^^^^^^^^^^^^^
- 15 | <BrowserRouter basename={window.spaBase}>
- 16 | <Route
- 17 | exact
- ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:51:19
- TS2339: Property 'children' does not exist on type 'I18nextLoadNamespaceProps'.
- 49 | }
- 50 |
- > 51 | return <>{props.children}</>;
- | ^^^^^^^^
- 52 | };
- 53 |
- 54 | export interface ComponentDecoratorOptions {
- ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:133:20
- TS2559: Type '{ _extensionContext?: ExtensionData; }' has no properties in common with type 'IntrinsicAttributes'.
- 131 | <React.Suspense fallback={null}>
- 132 | {opts.disableTranslations ? (
- > 133 | <Comp {...this.props} />
- | ^^^^
- 134 | ) : (
- 135 | <I18nextLoadNamespace
- 136 | ns={opts.moduleName}
- ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:135:20
- TS2322: Type '{ children: Element; ns: string; forceUpdate: () => void; }' is not assignable to type 'IntrinsicAttributes & I18nextLoadNamespaceProps'.
- Property 'children' does not exist on type 'IntrinsicAttributes & I18nextLoadNamespaceProps'.
- 133 | <Comp {...this.props} />
- 134 | ) : (
- > 135 | <I18nextLoadNamespace
- | ^^^^^^^^^^^^^^^^^^^^
- 136 | ns={opts.moduleName}
- 137 | forceUpdate={() => this.forceUpdate()}
- 138 | >
- ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:140:24
- TS2559: Type '{ _extensionContext?: ExtensionData; }' has no properties in common with type 'IntrinsicAttributes'.
- 138 | >
- 139 | <I18nextProvider i18n={i18n} defaultNS={opts.moduleName}>
- > 140 | <Comp {...this.props} />
- | ^^^^
- 141 | </I18nextProvider>
- 142 | </I18nextLoadNamespace>
- 143 | )}
- ERROR in ../../framework/esm-react-utils/src/UserHasAccess.tsx:11:3
- TS2339: Property 'children' does not exist on type 'UserHasAccessProps'.
- 9 | export const UserHasAccess: React.FC<UserHasAccessProps> = ({
- 10 | privilege,
- > 11 | children,
- | ^^^^^^^^
- 12 | }) => {
- 13 | const [user, setUser] = useState<LoggedInUser | null>(null);
- 14 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement