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

Next.js 13.0.3 adds 48kb javascript to first load #42889

Closed
1 task done
iljamulders opened this issue Nov 14, 2022 · 2 comments
Closed
1 task done

Next.js 13.0.3 adds 48kb javascript to first load #42889

iljamulders opened this issue Nov 14, 2022 · 2 comments
Labels
bug Issue was opened via the bug report template.

Comments

@iljamulders
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Upgrading to next@canary results in 48kb of extra javascript being loaded on first load

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.15.0
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.0.3-canary.4
      eslint-config-next: 13.0.3
      react: 18.2.0
      react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

13.0.2

Screenshot 2022-11-14 at 10 30 39

13.0.3

Screenshot 2022-11-14 at 10 31 16

Expected Behavior

Next 13.0.3 should not add so much extra javascript

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

yarn create next-app --typescript

To Reproduce

Create a new next.js project with yarn create next-app --typescript

Switch between next.js 13.0.2 and canary, and see the difference in js file size

yarn add next@13.0.2
yarn build
yarn start
yarn add next@canary
yarn build
yarn start
@iljamulders iljamulders added the bug Issue was opened via the bug report template. label Nov 14, 2022
@iljamulders iljamulders changed the title Next.js 13.0.3 adds 38kb javascript to first load Next.js 13.0.3 adds 48kb javascript to first load Nov 14, 2022
@balazsorban44
Copy link
Member

Thanks, this has been addressed already in #42790, but it's not yet released. It will be fixed in the next canary release.

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants