acoustic-van-30942
02/23/2023, 10:57 PMyarn build .
I get the following error:
#15 2.610 Creating an optimized production build...
#15 65.63 Failed to compile.
#15 65.63
#15 65.63 /app/src/components/Announcement/index.tsx
#15 65.63 TypeScript error in /app/src/components/Announcement/index.tsx(71,6):
#15 65.63 Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & { active?: boolean | undefined; }'. TS2559
#15 65.63
#15 65.63 69 |
#15 65.63 70 | return (
#15 65.63 > 71 | <HeightAnimatedContainer>
#15 65.63 | ^
#15 65.63 72 | <AnnouncementItemContainer type={item.type} open={open} last={last}>
#15 65.63 73 | <AnnouncementIcon>
#15 65.63 74 | <Icon name="warningThick" size="md" />
#15 65.63
#15 65.63
#15 65.78 error Command failed with exit code 1.
#15 65.78 info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
------
Any hints as to what could be causing this issue?brave-lion-15961
02/23/2023, 11:04 PMyarn build myself and did not get any errors. Have you run yarn install?acoustic-van-30942
02/23/2023, 11:04 PMbrave-lion-15961
02/23/2023, 11:04 PM❯ yarn lint
yarn run v1.22.19
$ eslint "./src/**/*.{ts,tsx}"
✨ Done in 7.71s.acoustic-van-30942
02/23/2023, 11:05 PMyarn run v1.22.19
$ eslint "./src/**/*.{ts,tsx}"
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0
YOUR TYPESCRIPT VERSION: 4.9.5
Please only submit bug reports when using the officially supported version.
=============
✨ Done in 8.91s.acoustic-van-30942
02/23/2023, 11:06 PMyarn.lock is different. Hopefully that's not the cause of the issue.brave-lion-15961
02/23/2023, 11:08 PMyarn lint to fail for the same reasons as yarn build if it was a module version issue.brave-lion-15961
02/23/2023, 11:09 PMyarn tsc and yarn start to see if you get errors.acoustic-van-30942
02/23/2023, 11:10 PMyarn tsc shows 120 errors in 54 files.
Errors Files
1 src/components/Announcement/index.tsx:71
1 src/components/Breadcrumb/index.tsx:221
1 src/components/Collapsable/__tests__/Collapsable.test.cypress.tsx:16
3 src/components/Collapsable/index.tsx:20
2 src/components/DAG/__tests__/DAGContent.test.cypress.tsx:198
1 src/components/DAG/components/DAGControlBar.tsx:20
1 src/components/DAG/index.tsx:40
2 src/components/Form/__tests__/Checkbox.test.cypress.tsx:10
2 src/components/Form/__tests__/DateInput.test.cypress.tsx:10
7 src/components/Form/__tests__/Dropdown.test.cypress.tsx:15
1 src/components/Form/Dropdown.tsx:32
3 src/components/FullPageContainer/__tests__/FullPageContainer.test.cypress.tsx:12
1 src/components/FullPageContainer/index.tsx:24
2 src/components/GenericError/index.tsx:144
1 src/components/HeightAnimatedContainer/index.tsx:9
1 src/components/HelpMenu/TimezoneSelector.tsx:22
1 src/components/InformationRow/index.tsx:12
3 src/components/LogList/__tests__/LogActionBar.test.cypress.tsx:20
7 src/components/LogList/__tests__/LogList.test.cypress.tsx:37
4 src/components/LogList/index.tsx:104
2 src/components/Modal/__tests__/Modal.test.cypress.tsx:9
1 src/components/Modal/index.tsx:23
2 src/components/Notifications/index.tsx:90
3 src/components/Plugins/PluginGroup.tsx:42
1 src/components/PropertyTable/index.tsx:51
1 src/components/Tag/__tests__/Tag.test.cypress.tsx:20
1 src/components/Tag/index.tsx:49
6 src/components/Timeline/__tests__/TaskListLabel.test.cypress.tsx:19
4 src/components/Timeline/Timeline.tsx:122
2 src/components/Timeline/TimelineRow/index.tsx:76
1 src/components/Timeline/useTaskData.ts:228
2 src/components/Timeline/VirtualizedTimeline.tsx:110
2 src/components/TitledRow/__tests__/TitledRow.test.cypress.tsx:24
1 src/pages/Home/ResultGroup/index.tsx:109
1 src/pages/Home/ResultGroup/ParametersPreview.tsx:20
7 src/pages/Home/ResultGroup/ResultGroupCells.tsx:37
1 src/pages/Home/ResultGroup/ResultGroupRow.tsx:108
1 src/pages/Home/ResultGroup/StartedAtCell.tsx:47
1 src/pages/Home/ResultGroup/StickyHeader.tsx:17
2 src/pages/Home/ResultGroup/TimelinePreview.tsx:38
1 src/pages/Home/Sidebar/SidebarTags.tsx:28
1 src/pages/Home/Sidebar/SidebarTimerangeSelection.tsx:44
1 src/pages/Run/RunHeader.tsx:112
4 src/pages/Task/__tests__/ArtifactTable.test.cypress.tsx:10
1 src/pages/Task/__tests__/AttemptSelector.test.cypress.tsx:11
3 src/pages/Task/__tests__/SectionLoader.test.cypress.tsx:13
3 src/pages/Task/components/AnchoredView.tsx:38
3 src/pages/Task/components/ArtifactTable.tsx:69
2 src/pages/Task/components/TaskDetails.tsx:100
3 src/pages/Task/components/TaskList.tsx:58
1 src/pages/Task/components/TaskSection.tsx:28
5 src/pages/Task/index.tsx:177
4 src/utils/debugdb.ts:18
1 src/utils/testing.tsx:14acoustic-van-30942
02/23/2023, 11:11 PMbrave-lion-15961
02/23/2023, 11:12 PMbrave-lion-15961
02/23/2023, 11:12 PM❯ node -v
v16.15.1acoustic-van-30942
02/23/2023, 11:13 PMv18.11.0 locally
And the docker image is nodejs14 alpinebrave-lion-15961
02/23/2023, 11:13 PM❯ npm ls | grep lint
├── @typescript-eslint/eslint-plugin@4.26.1
├── @typescript-eslint/parser@4.26.1
├── eslint-config-prettier@8.3.0
├── eslint-config-react-app@6.0.0
├── eslint-plugin-flowtype@5.7.2
├── eslint-plugin-import@2.23.4
├── eslint-plugin-jsx-a11y@6.4.1
├── eslint-plugin-prettier@3.4.0
├── eslint-plugin-react-hooks@4.2.0
├── eslint-plugin-react@7.24.0acoustic-van-30942
02/23/2023, 11:14 PM├── @typescript-eslint/eslint-plugin@4.33.0
├── @typescript-eslint/parser@4.33.0
├── eslint-config-prettier@8.6.0
├── eslint-config-react-app@6.0.0
├── eslint-plugin-flowtype@5.10.0
├── eslint-plugin-import@2.27.5
├── eslint-plugin-jsx-a11y@6.7.1
├── eslint-plugin-prettier@3.4.1
├── eslint-plugin-react-hooks@4.6.0
├── eslint-plugin-react@7.32.2brave-lion-15961
02/23/2023, 11:14 PMacoustic-van-30942
02/23/2023, 11:15 PMpackage.jsonbrave-lion-15961
02/23/2023, 11:15 PMbrave-lion-15961
02/23/2023, 11:18 PM❯ npm ls | grep lint
├── @typescript-eslint/eslint-plugin@4.33.0
├── @typescript-eslint/parser@4.33.0
├── eslint-config-prettier@8.6.0
├── eslint-config-react-app@6.0.0
├── eslint-plugin-flowtype@5.10.0
├── eslint-plugin-import@2.27.5
├── eslint-plugin-jsx-a11y@6.7.1
├── eslint-plugin-prettier@3.4.1
├── eslint-plugin-react-hooks@4.6.0
├── eslint-plugin-react@7.32.2brave-lion-15961
02/23/2023, 11:18 PM❯ yarn build
yarn run v1.22.19
$ cross-env DISABLE_NEW_JSX_TRANSFORM=true react-scripts build
Creating an optimized production build...
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0
YOUR TYPESCRIPT VERSION: 4.9.5
Please only submit bug reports when using the officially supported version.
=============
Failed to compile.
/Users/brendan/dev/metaflow-ui/src/App.tsx
TypeScript error in /Users/brendan/dev/metaflow-ui/src/App.tsx(43,8):
'ErrorBoundary' cannot be used as a JSX component.
Its instance type 'ErrorBoundary' is not a valid JSX element. TS2786
41 | return (
42 | <ThemeProvider theme={theme}>
> 43 | <ErrorBoundary message={t('error.application-error')}>
| ^
44 | <NotificationsProvider>
45 | <TimezoneProvider>
46 | <PluginsProvider>brave-lion-15961
02/23/2023, 11:18 PMbrave-lion-15961
02/23/2023, 11:18 PMyarn.lock?acoustic-van-30942
02/23/2023, 11:19 PM"react-error-boundary": "^3.1.4",brave-lion-15961
02/23/2023, 11:20 PMyarn.lock and yarn install again, yarn build passesacoustic-van-30942
02/23/2023, 11:21 PMyarn.lock in order to regenerate new one that points to our own internal npm registry . Our VPN was blocking connectivity to https://registry.yarnpkg.com. So we are only allowed to use the internal npm registry from Artifactorybrave-lion-15961
02/23/2023, 11:22 PMyarn.lock with your npm registry name, keeping the version numbers intact?acoustic-van-30942
02/23/2023, 11:23 PMyarn.lock file, did yarn config set registry <https://art-bobcat.autodesk.com/artifactory/api/npm/autodesk-npm-virtual/> and then yarn install to regenerate the new yarn.lockbrave-lion-15961
02/23/2023, 11:27 PMacoustic-van-30942
02/23/2023, 11:28 PMbrave-lion-15961
02/23/2023, 11:30 PMacoustic-van-30942
02/23/2023, 11:37 PMYour lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.acoustic-van-30942
02/23/2023, 11:55 PM├── @typescript-eslint/eslint-plugin@4.26.1
├── @typescript-eslint/parser@4.26.1
├── eslint-config-prettier@8.3.0
├── eslint-config-react-app@6.0.0
├── eslint-plugin-flowtype@5.7.2
├── eslint-plugin-import@2.23.4
├── eslint-plugin-jsx-a11y@6.4.1
├── eslint-plugin-prettier@3.4.0
├── eslint-plugin-react-hooks@4.2.0
├── eslint-plugin-react@7.24.0acoustic-van-30942
02/23/2023, 11:56 PMCreating an optimized production build...
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.4.0
YOUR TYPESCRIPT VERSION: 4.9.5
Please only submit bug reports when using the officially supported version.
=============
Failed to compile.
/Users/hunr/PycharmProjects/metaflow-ui/src/components/Announcement/index.tsx
TypeScript error in /Users/hunr/PycharmProjects/metaflow-ui/src/components/Announcement/index.tsx(71,6):
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & { active?: boolean | undefined; }'. TS2559
69 |
70 | return (
> 71 | <HeightAnimatedContainer>
| ^
72 | <AnnouncementItemContainer type={item.type} open={open} last={last}>
73 | <AnnouncementIcon>
74 | <Icon name="warningThick" size="md" />
error Command failed with exit code 1.brave-lion-15961
02/23/2023, 11:57 PMnpm ls | grep typescriptacoustic-van-30942
02/23/2023, 11:58 PM├── @typescript-eslint/eslint-plugin@4.26.1
├── @typescript-eslint/parser@4.26.1
├── typescript@4.9.5brave-lion-15961
02/23/2023, 11:58 PMtypescript in package.json did you?acoustic-van-30942
02/23/2023, 11:58 PMbrave-lion-15961
02/23/2023, 11:59 PM"typescript": "^4.2.3", change yours to "typescript": "4.2.3",acoustic-van-30942
02/23/2023, 11:59 PMacoustic-van-30942
02/24/2023, 12:02 AMbrave-lion-15961
02/24/2023, 12:12 AMacoustic-van-30942
02/24/2023, 12:13 AMacoustic-van-30942
02/24/2023, 12:14 AMNo overload matches this call.
Overload 1 of 2, '(props: BrowserRouterProps | Readonly<BrowserRouterProps>): BrowserRouter', gave the following error.
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps>'.
Overload 2 of 2, '(props: BrowserRouterProps, context: any): BrowserRouter', gave the following error.
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps>'. TS2769
47 | <LoggingProvider>
48 | <GlobalStyle />
> 49 | <Router>
| ^
50 | <QueryParamProvider ReactRouterRoute={Route}>
51 | {flagsReceived ? (
52 | <>
error Command failed with exit code 1.acoustic-van-30942
02/24/2023, 12:14 AMbrave-lion-15961
02/24/2023, 12:16 AM❯ npm ls
metaflow-ui@1.2.4 /Users/brendan/dev/metaflow-ui
├── @cypress/react@5.12.1
├── @cypress/webpack-dev-server@1.8.0
├── @rehooks/component-size@1.0.3
├── @types/node@12.12.47
├── @types/react-dom@16.9.8
├── @types/react-router-dom@5.1.5
├── @types/react-virtualized@9.21.10
├── @types/react@16.9.41
├── @types/styled-components@5.1.9
├── @types/uuid@8.0.0
├── @typescript-eslint/eslint-plugin@4.26.1
├── @typescript-eslint/parser@4.26.1
├── concurrently@6.3.0
├── copy-to-clipboard@3.3.1
├── cross-env@7.0.3
├── cypress-wait-until@1.7.1
├── cypress@9.3.1
├── eslint-config-prettier@8.3.0
├── eslint-config-react-app@6.0.0
├── eslint-plugin-flowtype@5.7.2
├── eslint-plugin-import@2.23.4
├── eslint-plugin-jsx-a11y@6.4.1
├── eslint-plugin-prettier@3.4.0
├── eslint-plugin-react-hooks@4.2.0
├── eslint-plugin-react@7.24.0
├── fake-indexeddb@3.1.2
├── http-proxy-middleware@1.3.1
├── i18next@19.5.2
├── idb@5.0.8
├── markdown-to-jsx@7.1.2
├── mock-websocket@0.0.7
├── polished@3.6.5
├── prettier@2.3.1
├── query-string@6.13.1
├── react-custom-scrollbars-2@4.4.0
├── react-dom@16.13.1
├── react-i18next@11.15.3
├── react-router-dom@5.2.0
├── react-scripts@4.0.3
├── react-tooltip@4.2.17
├── react-virtualized@9.21.2
├── react@16.13.1
├── reconnecting-websocket@4.4.0
├── serve@12.0.1
├── spacetime@6.10.1
├── styled-components@5.3.3
├── typescript@4.2.3
├── use-debounce@5.0.0
├── use-is-in-viewport@1.0.9
├── use-query-params@1.1.6
└── uuid@8.2.0brave-lion-15961
02/24/2023, 12:16 AMnpm ls and compare against mine?brave-lion-15961
02/24/2023, 12:17 AMrm -Rf node_modules then yarn installacoustic-van-30942
02/24/2023, 12:17 AMbrave-lion-15961
02/24/2023, 12:21 AMtypescript do you have?acoustic-van-30942
02/24/2023, 12:24 AM├── @typescript-eslint/eslint-plugin@4.26.1
├── @typescript-eslint/parser@4.26.1
├── typescript@4.2.3acoustic-van-30942
02/24/2023, 12:25 AMbrave-lion-15961
02/24/2023, 12:27 AM❯ npm ls | grep react-router-dom
├── @types/react-router-dom@5.1.5
├── react-router-dom@5.2.0brave-lion-15961
02/24/2023, 12:29 AMbrave-lion-15961
02/24/2023, 12:29 AMacoustic-van-30942
02/24/2023, 12:37 AM├── @types/react-router-dom@5.1.5
├── react-router-dom@5.2.0acoustic-van-30942
02/24/2023, 12:39 AMbrave-lion-15961
02/24/2023, 12:47 AMacoustic-van-30942
02/24/2023, 12:48 AMbrave-lion-15961
02/24/2023, 12:49 AMbrave-lion-15961
02/24/2023, 12:57 AMpackage.json I can recreate errors - I'll see if I can put together one that unblocks youacoustic-van-30942
02/24/2023, 12:58 AMbrave-lion-15961
02/24/2023, 2:45 AM"@types/react": "16.9.0", in package.json workedformeacoustic-van-30942
02/24/2023, 2:45 AMacoustic-van-30942
02/24/2023, 2:51 AMbrave-lion-15961
02/24/2023, 2:53 AMbrave-lion-15961
02/24/2023, 2:54 AMacoustic-van-30942
02/24/2023, 2:55 AMsrc/App.tsx:43:8 - error TS2786: 'ErrorBoundary' cannot be used as a JSX component.
Its instance type 'ErrorBoundary' is not a valid JSX element.
43 <ErrorBoundary message={t('error.application-error')}>
~~~~~~~~~~~~~
src/App.tsx:50:39 - error TS2322: Type 'typeof Route' is not assignable to type 'FunctionComponent<{}> | ComponentClass<{}, any> | undefined'.
Type 'typeof Route' is not assignable to type 'ComponentClass<{}, any>'.
Types of property 'contextType' are incompatible.
Type 'import("/Users/hunr/PycharmProjects/metaflow-ui/node_modules/@types/react-router/node_modules/@types/react/index").Context<any> | undefined' is not assignable to type 'React.Context<any> | undefined'.
Type 'import("/Users/hunr/PycharmProjects/metaflow-ui/node_modules/@types/react-router/node_modules/@types/react/index").Context<any>' is not assignable to type 'React.Context<any>'.brave-lion-15961
02/24/2023, 2:58 AMacoustic-van-30942
02/24/2023, 2:58 AMacoustic-van-30942
02/24/2023, 2:59 AM"@types/react" to 16.9.0brave-lion-15961
02/24/2023, 3:06 AMacoustic-van-30942
02/24/2023, 3:06 AMacoustic-van-30942
02/24/2023, 3:20 AM^.acoustic-van-30942
02/24/2023, 3:24 AMpublic.ecr.aws/outerbounds/metaflow_ui:latest 🙏
One thing our Security team would need to know then is if there is no interactive access permissable to the containers (eg no SSH)brave-lion-15961
02/24/2023, 3:40 AMacoustic-van-30942
02/24/2023, 3:41 AMacoustic-van-30942
02/24/2023, 7:02 AMyarn --frozen-lockfile instead of yarn install and that seemed to do the trick.
Thanks so much for your help!brave-lion-15961
02/24/2023, 2:11 PMbrave-lion-15961
02/24/2023, 2:12 PMacoustic-van-30942
02/25/2023, 1:30 AMbrave-lion-15961
03/07/2023, 4:37 PMacoustic-van-30942
03/07/2023, 4:37 PM