Advertisement
josephkagimu1

Untitled

Apr 26th, 2022
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. webpack 5.72.0 compiled successfully in 42110 ms
  2. Issues checking in progress...
  3. ERROR in src/CurrentUserContext.tsx:24:48
  4. TS2339: Property 'children' does not exist on type '{}'.
  5. 22 | }
  6. 23 |
  7. > 24 | export const CurrentUserContext: React.FC = ({ children }) => {
  8. | ^^^^^^^^
  9. 25 | const [user, setUser] = useState<UserState>({
  10. 26 | current: undefined,
  11. 27 | loading: true,
  12.  
  13. ERROR in src/root.component.tsx:14:6
  14. TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.
  15. 12 | const Root: React.FC<RootProps> = ({ isLoginEnabled }) => {
  16. 13 | return (
  17. > 14 | <CurrentUserContext>
  18. | ^^^^^^^^^^^^^^^^^^
  19. 15 | <BrowserRouter basename={window.spaBase}>
  20. 16 | <Route
  21. 17 | exact
  22.  
  23. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:51:19
  24. TS2339: Property 'children' does not exist on type 'I18nextLoadNamespaceProps'.
  25. 49 | }
  26. 50 |
  27. > 51 | return <>{props.children}</>;
  28. | ^^^^^^^^
  29. 52 | };
  30. 53 |
  31. 54 | export interface ComponentDecoratorOptions {
  32.  
  33. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:133:20
  34. TS2559: Type '{ _extensionContext?: ExtensionData; }' has no properties in common with type 'IntrinsicAttributes'.
  35. 131 | <React.Suspense fallback={null}>
  36. 132 | {opts.disableTranslations ? (
  37. > 133 | <Comp {...this.props} />
  38. | ^^^^
  39. 134 | ) : (
  40. 135 | <I18nextLoadNamespace
  41. 136 | ns={opts.moduleName}
  42.  
  43. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:135:20
  44. TS2322: Type '{ children: Element; ns: string; forceUpdate: () => void; }' is not assignable to type 'IntrinsicAttributes & I18nextLoadNamespaceProps'.
  45. Property 'children' does not exist on type 'IntrinsicAttributes & I18nextLoadNamespaceProps'.
  46. 133 | <Comp {...this.props} />
  47. 134 | ) : (
  48. > 135 | <I18nextLoadNamespace
  49. | ^^^^^^^^^^^^^^^^^^^^
  50. 136 | ns={opts.moduleName}
  51. 137 | forceUpdate={() => this.forceUpdate()}
  52. 138 | >
  53.  
  54. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:140:24
  55. TS2559: Type '{ _extensionContext?: ExtensionData; }' has no properties in common with type 'IntrinsicAttributes'.
  56. 138 | >
  57. 139 | <I18nextProvider i18n={i18n} defaultNS={opts.moduleName}>
  58. > 140 | <Comp {...this.props} />
  59. | ^^^^
  60. 141 | </I18nextProvider>
  61. 142 | </I18nextLoadNamespace>
  62. 143 | )}
  63.  
  64. ERROR in ../../framework/esm-react-utils/src/UserHasAccess.tsx:11:3
  65. TS2339: Property 'children' does not exist on type 'UserHasAccessProps'.
  66. 9 | export const UserHasAccess: React.FC<UserHasAccessProps> = ({
  67. 10 | privilege,
  68. > 11 | children,
  69. | ^^^^^^^^
  70. 12 | }) => {
  71. 13 | const [user, setUser] = useState<LoggedInUser | null>(null);
  72. 14 |
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement