Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid the default is not a function unclear error #438

Commits on Aug 21, 2023

  1. avoid the default is not a function unclear error

    if there is some issue evaluating a lazy loaded edge function
    its default export ends up not being a function and that results
    in an unhelpful error like the following:
    ```
     TypeError: u.default is not a function
    ```
    
    slightly improve the user experience by catching such error and
    letting the user know that something went wrong with the edge
    function's evaluation:
    ```
     Error: An error occurred while evaluating the target edge function (<edge-function-path>)
    ```
    dario-piotrowicz committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    8b53a9a View commit details
    Browse the repository at this point in the history