So i am trying to get started with riverpod and creating a new flutter project with the "click and counter" default sample.
As soon as I add on the pubspec

```
flutter_hooks: ^0.18.0
hooks_riverpod: ^2.0.0

```

And

> 
> import 'package:hooks\_riverpod/hooks\_riverpod.dart';
> 
> 
> 

I get this error on the debug console and can't figure it out what is the problem

```
: Error: Method not found: 'Error.throwWithStackTrace'.
../…/framework/provider_base.dart:904
  Error.throwWithStackTrace(error, chain);
        ^^^^^^^^^^^^^^^^^^^
: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
../…/framework/provider_base.dart:898
Never _rethrowProviderError(Object error, StackTrace stackTrace) {
      ^

```