Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile problem roughly(node v16.14.2) #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/gi-assets-advance/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-algorithm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ const ContentContainer: React.FunctionComponent<SideTabsProps> = props => {

const sortedComponents = React.useMemo(() => {
return Object.values(assets.components || {}).filter(item => {
// @ts-ignore
return componentKeys.indexOf(item.info.id) !== -1;
});
}, [assets.components, componentKeys]);

const configMap = React.useMemo(() => {
return Object.values(config.components || {})
.filter(item => {
// @ts-ignore
return componentKeys.indexOf(item.id) !== -1;
})
.reduce((acc, curr) => {
// @ts-ignore
acc[curr.id] = curr.props;
return acc;
}, {});
Expand All @@ -31,8 +34,10 @@ const ContentContainer: React.FunctionComponent<SideTabsProps> = props => {
return (
<>
{sortedComponents.map(item => {
// @ts-ignore
const { component: Component, info } = item;
const { id } = info;
// @ts-ignore
const itemProps = configMap[id];
// @ts-ignore
return <Component key={id} {...itemProps} />;
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-basic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-galaxybase/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-graphscope/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-hugegraph/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
2 changes: 2 additions & 0 deletions packages/gi-assets-neo4j/src/components/Connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { connectNeo4jService } from '../services/Neo4jService';
import CollapseCard from './CollapseCard';

import './index.less';
import LoadGraph from "./LoadGraph";

export interface ConnectProps {
updateToken: () => void;
Expand Down Expand Up @@ -46,6 +47,7 @@ const ConnectNeo4j: React.FC<ConnectProps> = ({ updateToken, token }) => {
description: '请继续进入分析',
});
updateToken();

} else {
notification.error({
message: '连接 Neo4j 数据库失败',
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-neo4j/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-scene/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-testing/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-assets-tugraph/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-cli/templates/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"strict": true,
"declaration": true,
"skipLibCheck": true,
"baseUrl": "./"
}
Expand Down
1 change: 0 additions & 1 deletion packages/gi-common-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 1 addition & 0 deletions packages/gi-sdk/src/GISDK.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type { Props, State } from './typing';
import { GIComponentConfig } from './typing';
import { createUuid } from './process/common';

// @ts-ignore
let updateHistoryTimer: NodeJS.Timer;

/** export */
Expand Down
1 change: 0 additions & 1 deletion packages/gi-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion packages/gi-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "node scripts/pre-build.mjs && NODE_OPTIONS=--max_old_space_size=4096 umi build",
"build:docker": "cd ../../ && npm run build:all:umd && cd packages/gi-site/ && BUILD_MODE=docker node scripts/pre-build.mjs && node scripts/copy-assets.mjs && BUILD_MODE=docker NODE_OPTIONS=--max_old_space_size=4096 umi build",
"deploy": "node ./scripts/deploy.js",
"start": "node scripts/pre-build.mjs && cross-env NODE_OPTIONS=--max_old_space_size=4096 cross-env PORT=8000 umi dev"
"start": "node --experimental-json-modules scripts/pre-build.mjs && cross-env NODE_OPTIONS=--max_old_space_size=4096 cross-env PORT=8000 umi dev"
},
"dependencies": {
"@ant-design/charts": "^1.0.21",
Expand Down
1 change: 0 additions & 1 deletion packages/gi-theme-antd/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down
1 change: 0 additions & 1 deletion packages/my-custom-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"declaration": true,
"target": "es2015",
"moduleResolution": "node",
"jsx": "react",
Expand Down