I'm trying to generate routes in a vercel build using dart run routefly in a Flutter Web App. But I'm getting an error that don't let me deploy my app:
Unhandled exception:
ProcessException: No such file or directory
Command: dart format lib/zup_app.route.dart
#0 _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:488:7)
#1 _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:633:18)
#2 Process.runSync (dart:io-patch/process_patch.dart:68:12)
#3 GenerateRoutes.call (package:routefly/src/usecases/generate_routes.dart:106:13)
<asynchronous suspension>
#4 main (file:///vercel/.pub-cache/git/routefly-bc6593a8fe4ea21f4bc66f6995fc9e35bc1b9306/bin/routefly.dart:26:5)
<asynchronous suspension>
Steps to reproduce
- Create a Flutter Web App
- Add Routefly and Configure
- Deploy it to vercel running routefly generator in the build command part
- You got the same error
I'm trying to generate routes in a vercel build using
dart run routeflyin a Flutter Web App. But I'm getting an error that don't let me deploy my app:Steps to reproduce