dart-gde / chrome.dart

Provide Dart interop with chrome.* APIs for Chrome Packaged Apps
Other
125 stars 48 forks source link

Error while using latest Dart SDKs #278

Open ghost opened 6 years ago

ghost commented 6 years ago

After running pub run build_runner build --config debug --output build

packages/chrome/src/common.dart:45:10:
Error: Getter not found: 'JSON'.

Dart SDK version: 2.0.0-dev.69.3 chrome.dart version: "0.10.1"

ghost commented 6 years ago

This error was resolved after I replaced JSON.decode with json.decode

leafpetersen commented 6 years ago

There's a PR here https://github.com/dart-gde/chrome.dart/pull/272 from @munificent . Not sure what the status is.

tonyclickspace commented 6 years ago

Dart2 Stable landed today - the SDK constraints need to be updated as well. https://www.dartlang.org/dart-2#upper-constraints-on-the-sdk-version

adambender commented 6 years ago

Hey all, sorry about the delay. A few things are going on and that has led to some of these issues and PRs falling through the cracks. Internally we are shifting around some of the maintainers for those who are working with the library more frequently and also a bunch of vacations happened at once, combine that with the Dart 2 release which has generated more traffic than we have seen in sometime and we just weren't ready.

We will get these issues resolved asap, again really sorry about the delays here.