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

Angular 8.0使用报错 #2134

Closed
sujie1992 opened this issue Dec 23, 2020 · 1 comment
Closed

Angular 8.0使用报错 #2134

sujie1992 opened this issue Dec 23, 2020 · 1 comment

Comments

@sujie1992
Copy link

  • G2Plot Version:2.3.3
  • Platform:Angular8
  • Mini Showcase(like screenshots):
  • CodePen Link:

ERROR in node_modules/@antv/g2/lib/chart/controller/annotation.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/controller/base.d.ts(20,18): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/controller/tooltip.d.ts(15,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/event.d.ts(26,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/event.d.ts(28,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/event.d.ts(30,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/event.d.ts(32,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/event.d.ts(34,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/chart/event.d.ts(36,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@antv/g2/lib/util/bbox.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context.

@hustcc
Copy link
Member

hustcc commented Dec 23, 2020

upgrade "typescript" at least "3.7.4"

ng update --next @angular/cli --force
npm install typescript@latest

ref: storybookjs/storybook#9463

@hustcc hustcc closed this as completed Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants