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

type 'Null' is not a subtype of type 'String' in type cast #262

Closed
mizzb opened this issue May 29, 2021 · 13 comments
Closed

type 'Null' is not a subtype of type 'String' in type cast #262

mizzb opened this issue May 29, 2021 · 13 comments

Comments

@mizzb
Copy link

mizzb commented May 29, 2021

build runner throws this error.

[SEVERE] chopper_generator:chopper_generator:

type 'Null' is not a subtype of type 'String' in type cast
package:chopper_generator/chopper_generator.dart 7:69 chopperGeneratorFactory
package:build_runner_core/src/package_graph/apply_builders.dart 179:47 new BuilderApplication.forBuilder...
dart:async runZonedGuarded

@JEuler
Copy link
Collaborator

JEuler commented May 30, 2021

What SDK you are using from pubspec?

@mizzb
Copy link
Author

mizzb commented May 30, 2021

sdk: ">=2.12.0 <3.0.0"

chopper_generator: ^4.0.0
chopper: ^4.0.0

@fryette
Copy link
Contributor

fryette commented May 30, 2021

same for me

@Vovanella95
Copy link
Contributor

same issue on my side

@JEuler
Copy link
Collaborator

JEuler commented May 30, 2021

As I understand, this is #257 ? Correct?
I'm getting the files generated, BTW. There is a workaround about that in the old issue, and I have merged the fix to develop branch, but we haven't released anything new.

@lejard-h What do you think? Should we release hotfix? Is that automated by Github Actions?

@Vovanella95
Copy link
Contributor

f25fbe4

Looks like it fixes an issue.
You need just publish a new version

@JEuler
Copy link
Collaborator

JEuler commented May 31, 2021

Okay, I will publish it tomorrow. I have contacted @lejard-h and received instructions, will try them tomorrow. I'm on vacation and it is late for me :)

@Vovanella95
Copy link
Contributor

Thaks! Sorry for interruption. Enjoy your vacation!

This was referenced Jun 1, 2021
@JEuler
Copy link
Collaborator

JEuler commented Jun 1, 2021

4.0.1 released, should we working now!

@JEuler
Copy link
Collaborator

JEuler commented Jun 2, 2021

Because it was working for me without this patch, please check the fix and write here, if possible :)

@Vovanella95
Copy link
Contributor

4.0.1 released, should we working now!

Can approve everything works well. Thanks!

@ivoberger
Copy link

Note for anybody who has issues with 4.0.1: run a flutter clean. Fixed it for me.

@JEuler
Copy link
Collaborator

JEuler commented Jun 3, 2021

Thanks all!

@JEuler JEuler closed this as completed Jun 3, 2021
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

5 participants