Advertisement
josephkagimu1

Untitled

Apr 26th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. Compiled with problems:X
  2.  
  3. ERROR in ./node_modules/@carbon/icons-react/es/arrow--right/24.js
  4.  
  5. Module build failed: Error: ENOENT: no such file or directory, open '/Volumes/DATE2/Openmrs projects/openmrs-esm-core/packages/apps/esm-login-app/node_modules/@carbon/icons-react/es/arrow--right/24.js'
  6.  
  7.  
  8. ERROR in ./node_modules/@carbon/icons-react/es/location/20.js
  9.  
  10. Module build failed: Error: ENOENT: no such file or directory, open '/Volumes/DATE2/Openmrs projects/openmrs-esm-core/packages/apps/esm-login-app/node_modules/@carbon/icons-react/es/location/20.js'
  11.  
  12.  
  13. ERROR in ./node_modules/regenerator-runtime/runtime.js
  14.  
  15. Module build failed: Error: ENOENT: no such file or directory, open '/Volumes/DATE2/Openmrs projects/openmrs-esm-core/packages/apps/esm-login-app/node_modules/regenerator-runtime/runtime.js'
  16.  
  17.  
  18. ERROR in ./node_modules/lodash-es/debounce.js
  19.  
  20. Module build failed: Error: ENOENT: no such file or directory, open '/Volumes/DATE2/Openmrs projects/openmrs-esm-core/packages/apps/esm-login-app/node_modules/lodash-es/debounce.js'
  21.  
  22.  
  23. ERROR in ./node_modules/swr/infinite/dist/index.mjs
  24.  
  25. Module build failed: Error: ENOENT: no such file or directory, open '/Volumes/DATE2/Openmrs projects/openmrs-esm-core/packages/apps/esm-login-app/node_modules/swr/infinite/dist/index.mjs'
  26.  
  27.  
  28. ERROR in src/CurrentUserContext.tsx:24:48
  29.  
  30. TS2339: Property 'children' does not exist on type '{}'.
  31. 22 | }
  32. 23 |
  33. > 24 | export const CurrentUserContext: React.FC = ({ children }) => {
  34. | ^^^^^^^^
  35. 25 | const [user, setUser] = useState<UserState>({
  36. 26 | current: undefined,
  37. 27 | loading: true,
  38.  
  39.  
  40. ERROR in src/root.component.tsx:14:6
  41.  
  42. TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.
  43. 12 | const Root: React.FC<RootProps> = ({ isLoginEnabled }) => {
  44. 13 | return (
  45. > 14 | <CurrentUserContext>
  46. | ^^^^^^^^^^^^^^^^^^
  47. 15 | <BrowserRouter basename={window.spaBase}>
  48. 16 | <Route
  49. 17 | exact
  50.  
  51.  
  52. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:51:19
  53.  
  54. TS2339: Property 'children' does not exist on type 'I18nextLoadNamespaceProps'.
  55. 49 | }
  56. 50 |
  57. > 51 | return <>{props.children}</>;
  58. | ^^^^^^^^
  59. 52 | };
  60. 53 |
  61. 54 | export interface ComponentDecoratorOptions {
  62.  
  63.  
  64. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:133:20
  65.  
  66. TS2559: Type '{ _extensionContext?: ExtensionData; }' has no properties in common with type 'IntrinsicAttributes'.
  67. 131 | <React.Suspense fallback={null}>
  68. 132 | {opts.disableTranslations ? (
  69. > 133 | <Comp {...this.props} />
  70. | ^^^^
  71. 134 | ) : (
  72. 135 | <I18nextLoadNamespace
  73. 136 | ns={opts.moduleName}
  74.  
  75.  
  76. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:135:20
  77.  
  78. TS2322: Type '{ children: Element; ns: string; forceUpdate: () => void; }' is not assignable to type 'IntrinsicAttributes & I18nextLoadNamespaceProps'.
  79. Property 'children' does not exist on type 'IntrinsicAttributes & I18nextLoadNamespaceProps'.
  80. 133 | <Comp {...this.props} />
  81. 134 | ) : (
  82. > 135 | <I18nextLoadNamespace
  83. | ^^^^^^^^^^^^^^^^^^^^
  84. 136 | ns={opts.moduleName}
  85. 137 | forceUpdate={() => this.forceUpdate()}
  86. 138 | >
  87.  
  88.  
  89. ERROR in ../../framework/esm-react-utils/src/openmrsComponentDecorator.tsx:140:24
  90.  
  91. TS2559: Type '{ _extensionContext?: ExtensionData; }' has no properties in common with type 'IntrinsicAttributes'.
  92. 138 | >
  93. 139 | <I18nextProvider i18n={i18n} defaultNS={opts.moduleName}>
  94. > 140 | <Comp {...this.props} />
  95. | ^^^^
  96. 141 | </I18nextProvider>
  97. 142 | </I18nextLoadNamespace>
  98. 143 | )}
  99.  
  100.  
  101. ERROR in ../../framework/esm-react-utils/src/UserHasAccess.tsx:11:3
  102.  
  103. TS2339: Property 'children' does not exist on type 'UserHasAccessProps'.
  104. 9 | export const UserHasAccess: React.FC<UserHasAccessProps> = ({
  105. 10 | privilege,
  106. > 11 | children,
  107. | ^^^^^^^^
  108. 12 | }) => {
  109. 13 | const [user, setUser] = useState<LoggedInUser | null>(null);
  110. 14 |
  111.  
  112.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement