angel-dart / angel

[ARCHIVED] A polished, production-ready backend framework in Dart for the VM, AOT, and Flutter.
https://angel-dart.dev/
MIT License
1.06k stars 67 forks source link

angel_framework doesn't work in flutter project #266

Closed benoitverstraete closed 3 years ago

benoitverstraete commented 4 years ago

Hi,

I would like to create a web server in a flutter project, as described in the package https://pub.dev/packages/angel_framework (compatible with flutter), but I get some errors about reflection/mirrors (that doesn't exist in flutter) :

E/flutter ( 6105): [ERROR:flutter/shell/common/shell.cc(213)] Dart Error: error: import of dart:mirrors is not supported in the current Dart runtime
E/flutter ( 6105): [ERROR:flutter/shell/common/engine.cc(200)] Could not prepare to run the isolate.
E/flutter ( 6105): [ERROR:flutter/shell/common/engine.cc(139)] Engine not prepare and launch isolate.
E/flutter ( 6105): [ERROR:flutter/shell/common/shell.cc(485)] Could not launch engine with configuration.

I tried with the exact same code as the example in an empty project.

Maybe another reflector ?

var app = Angel(reflector: MirrorsReflector());

I don't need reflection in my project.

Thanks a lot.