You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The config above moved the generated mapper file from some/path/to/foo.mapper.dart to lib/generated/some/path/to/foo.mapper.dart and on Windows platform in the Generated code, the part of statement broke like this:
part of'..\main.dart';
which should be part of ..\\main.dart or part of ../main.dart.
Description
I encountered this error when using v4.2.0 (latest version) on Windows with the following build config:
The config above moved the generated mapper file from
some/path/to/foo.mapper.dart
tolib/generated/some/path/to/foo.mapper.dart
and on Windows platform in the Generated code, thepart of
statement broke like this:which should be
part of ..\\main.dart
orpart of ../main.dart
.Reproduce
Just use the repo here.
Or:
build.yaml
:dart run build_runner build
and in the generated file there is:part of '..\main.dart';
which is broken on Windows.Info
The text was updated successfully, but these errors were encountered: