Skip to content

Firebase tools doesn't deploy NextJs web framework for NextJs >=13.5.0 #6382

Closed

Description

@Ferido07

[REQUIRED] Environment info

firebase-tools: 12.5.4

Platform: Ubuntu

[REQUIRED] Test case

Deploying Next.js >= v13.5.0 to firebase doesn't complete due to error. All permission and account setup is correct.

[REQUIRED] Steps to reproduce

  • Setup firebase for nextjs deployment.
  • Deploy project using firebase hosting:channel:deploy new-awesome-feature --expires 7d

[REQUIRED] Expected behavior

Deployment complete successfully

[REQUIRED] Actual behavior

TypeError: Cannot destructure property 'customConfig' of '(intermediate value)(intermediate value)(intermediate value)' as it is null.
.
.
.  
The process '/usr/local/bin/npx' failed with exit code 2
Error: The process '/usr/local/bin/npx' failed with exit code 2

Activity

  1. added a commit that references this issue on Sep 20, 2023
  2. devideo-dev commented on Sep 21, 2023

    @devideo-dev

    same issues here

  3. Ferido07 commented on Sep 21, 2023

    @Ferido07
    ContributorAuthor

    We just have to wait until the fix is reveiwed and merged.

  4. dsgriffin commented on Sep 21, 2023

    @dsgriffin

    yep - confirming that attempting to do a v13.5 nextjs release via firebase hosting is blocked right now.

  5. aalej commented on Sep 21, 2023

    @aalej
    Contributor

    Hey everyone, thanks for raising this issue. I was able to replicate the behavior mentioned. When trying to deploy using Next.js version 13.5.x, an error is being raised.

    Let me notify our engineering team about this issue so that they can take a look into this. I’ll also be marking this issue as reproducible.

  6. Ferido07 commented on Sep 22, 2023

    @Ferido07
    ContributorAuthor

    @aalej I have created a PR for the fix please try to approve it and see if it passes all the tests.

  7. added a commit that references this issue on Sep 26, 2023
  8. gblue1223 commented on Oct 26, 2023

    @gblue1223

    I fixed the issue with [email protected] and [email protected].

    $ npm i -g [email protected] && npm i [email protected]  && firebase deploy
    
  9. Ferido07 commented on Oct 26, 2023

    @Ferido07
    ContributorAuthor
  10. added a commit that references this issue on Dec 14, 2023
  11. ANTONINEUTRON commented on Dec 28, 2023

    @ANTONINEUTRON

    I fixed this issue by installing [email protected] while using next 14.0.4

  12. HubertRyanOfficial commented on Feb 9, 2024

    @HubertRyanOfficial

    I fixed this issue by installing [email protected] while using next 14.0.4

    It worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions