felangel / felangel/mason

fix: type 'Null' is not a subtype of type 'Object'

Open
#1,069 3 comments 0 reactions 1 assignee Claimed by @felangel View on GitHub
enhancement
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

**Description**

`mason make` crashes after the `pre_gen` hook, outputting "type 'Null' is not a subtype of type 'Object'".
I am unable to debug or try to pinpoint this any better. The message says nothing on its own, and I am unable to understand what's going on.

So far I'm pretty sure my hooks aren't involved (pre-gen finishes correctly, post-gen isn't invoked since the crash happens before that).

I've tried my best to pinpoint the problem but I unluckily can't.

**Steps To Reproduce**
I've got a full reproducible example.

1. Go to [this repo](https://github.com/lucavenir/riverpod_clean_feature_brick)
2. Clone it
3. `mason make riverpod_clean_feature_brick`
4. See error

**Expected Behavior**
At least some explanation on why this crashed.

**Additional Context**
I'm trying to make a riverpod - related feature brick, following an architecture that we've recently adopted

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.