google / chartjs.dart

ARCHIVED/UNMAINTAINED Dart API for Chart.js
https://pub.dev/packages/chartjs
Other
143 stars 53 forks source link

Add 'external' modifier to JS interop classes to support Dart 2.8.1 #45

Closed BenEstremera closed 2 years ago

BenEstremera commented 4 years ago

When using chartjs with Dart 2.8.1, I get the an error requesting the use of the 'external' keyword for the fake constructors on lines 28 and 85 of chartjs.dart

Error compiling dartdevc module:chartjs|lib/chartjs.ddc.js

packages/chartjs/chartjs.dart:28:3: Error: JS interop classes do not support non-external constructors.
Try annotating with external.
  Chart.fakeConstructor$();

Try annotating with external.
  PluginServiceStatic.fakeConstructor$();
  (line 85)
treeplate commented 2 years ago

c5d7988 gets rid of those constructors,

treeplate commented 2 years ago

so this should be closed

kevmoo commented 2 years ago

👍