Closed JeromePuttemans closed 6 years ago
Could you check if your project uses .runtimeType
anywhere? There's a related compiler bug.
Yes, thank you. You're right, when I remove the .runtimeType, the project builds correclty ! Can you point me to the problematic compiler issue ?
That issue will probably never be fixed because it is related to the old compiler pipeline. With the new compiler front-end, code with .runtimeType
builds fine.
You can try it like this (code needs to be built manually for now, without pub build
):
$ dart2js --use-kernel your_app.dart --out=your_app.dart.js
AFAIU, the new compiler will soon be enabled by default.
@JeromePuttemans
The code should compile fine by default as of 2.0.0-dev.39.0
.
@lexaknyazev
Nice, thanks for the info.
Hello,
I'm learning to build a 'webgl' project of my own and use 'GLTF' as a dependency. My project build correctly in debug with dartdevc but not in release with dart2js.
The base project 'gltf' project build correctly both in release with dartdevc and build with dart2j !!
Dart VM version: 2.0.0-dev.30.0 (Thu Feb 22 14:08:47 2018 +0100) on "windows_x64"
As said in https://github.com/dart-lang/sdk/issues/32334
But after removing all aspects of mirrors in my project, I still have the problem, I definitively don't understand the real problem.
Here is my puspec.yaml:
and the error log:
Thank you