haxe-js-kit icon indicating copy to clipboard operation
haxe-js-kit copied to clipboard

Mongoose : "Variable requires type-hint or initialization" using schemaOptions

Open TheoSabattie opened this issue 5 years ago • 2 comments

Hello',

Thanks for your project, you bring to us an usefull set of tools.

After updating to haxe 4, a lot of things seem to be broken. I resolved some of them but I didn't resolve the following error below:
"Variable requires type-hint or initialization"

That happened just by declaring a Model:

@:schemaOptions({autoIndex: true})
class Leaderboard extends Model<LeaderboardData>{}

Do you have any Idea?

Thanks in advance,

Théo Sabattié

TheoSabattie avatar Mar 27 '20 17:03 TheoSabattie

Hi @TheoSabattie The issue seems related to https://github.com/clemos/haxe-js-kit/issues/179 The problem is most probably in the same macro. Unfortunately I have no time to look into it at the moment.

clemos avatar Mar 30 '20 07:03 clemos

Hi @clemos ,
Thanks for your answer.
I hope that you will get time to make it works again.
Good luck for your current things.

TheoSabattie avatar Mar 30 '20 13:03 TheoSabattie