Skip to content

Not possible to generate routes in vercel #28

@RyanHolanda

Description

@RyanHolanda

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

  1. Create a Flutter Web App
  2. Add Routefly and Configure
  3. Deploy it to vercel running routefly generator in the build command part
  4. You got the same error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions