Skip to content

Issue with serve for a Nextjs project #357

Description

@abdelhamid-attaby

When running fab serve fab.zip --port=3001 on a specific project it throws the following error. After a couple of investigations, I found the first part of the error which is about .env.local appears even for a new nextjs application, so, I believe it is an issue with FAB but the new project is running smoothly.

The second part (TypeError: http.Agent is not a constructor), which is more important, I cannot know what is the issue with it. I opened server.js but found that http is imported from __webpack_require__(43) and I couldn't trace more.

        [Server] 💎 fab serve 💎
        [Server] Reading fab.zip…
        [Server] ✔ Done. Booting VM…
Failed to load env from .env.local TypeError: e.info is not a function
    at processEnv (evalmachine.<anonymous>:70518:25)
    at Module.1tyE (evalmachine.<anonymous>:44515:9)
    at __webpack_require__ (evalmachine.<anonymous>:41789:29)
    at evalmachine.<anonymous>:41846:20
    at Object.<anonymous> (evalmachine.<anonymous>:41859:7)
    at Object.<anonymous> (evalmachine.<anonymous>:108526:34)
    at __webpack_require__ (evalmachine.<anonymous>:11646:34)
    at Object.<anonymous> (evalmachine.<anonymous>:41765:27)
    at __webpack_require__ (evalmachine.<anonymous>:11646:34)
    at evalmachine.<anonymous>:11710:22
    TypeError: http.Agent is not a constructor

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