-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Fix styled-jsx import error with yarn with PNP enabled; Close: #10149 #21320
Conversation
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.4s | 10.6s | |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.129 | 2.085 | -0.04 |
/ avg req/sec | 1174.45 | 1199 | +24.55 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.35 | 1.322 | -0.03 |
/error-in-render avg req/sec | 1851.41 | 1891.22 | +39.81 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 12.3s | 12.4s | |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.18 MB | 5.18 MB | ✓ |
Webpack 5 Mode (Increase detected ⚠️ )
General
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 13.1s | 13s | -55ms |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.054 | 2.097 | |
/ avg req/sec | 1217.43 | 1192.09 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.35 | 1.323 | -0.03 |
/error-in-render avg req/sec | 1851.87 | 1889.9 | +38.03 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-3bd7d6bd..868b.js gzip | 13 kB | 13 kB | ✓ |
778-d412f8e7..3ee1.js gzip | 6.56 kB | 6.56 kB | ✓ |
838-adcbad39..6e83.js gzip | 31.1 kB | 31.1 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-6a6a792..6877.js gzip | 96 B | 96 B | ✓ |
webpack-e302..54e9.js gzip | 954 B | 954 B | ✓ |
Overall change | 91 kB | 91 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-a0..538c.js gzip | 88 B | 88 B | ✓ |
Overall change | 88 B | 88 B | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 585 B | 585 B | ✓ |
link.html gzip | 592 B | 592 B | ✓ |
withRouter.html gzip | 581 B | 581 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "D6k_YnIJ49K4XWgxtwYjE",
+ "buildId": "hTrd3Ke-uPikssSFB-xRh",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/D6k_YnIJ49K4XWgxtwYjE/_buildManifest.js"
+ src="/_next/static/hTrd3Ke-uPikssSFB-xRh/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/D6k_YnIJ49K4XWgxtwYjE/_ssgManifest.js"
+ src="/_next/static/hTrd3Ke-uPikssSFB-xRh/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "D6k_YnIJ49K4XWgxtwYjE",
+ "buildId": "hTrd3Ke-uPikssSFB-xRh",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/D6k_YnIJ49K4XWgxtwYjE/_buildManifest.js"
+ src="/_next/static/hTrd3Ke-uPikssSFB-xRh/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/D6k_YnIJ49K4XWgxtwYjE/_ssgManifest.js"
+ src="/_next/static/hTrd3Ke-uPikssSFB-xRh/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "D6k_YnIJ49K4XWgxtwYjE",
+ "buildId": "hTrd3Ke-uPikssSFB-xRh",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/D6k_YnIJ49K4XWgxtwYjE/_buildManifest.js"
+ src="/_next/static/hTrd3Ke-uPikssSFB-xRh/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/D6k_YnIJ49K4XWgxtwYjE/_ssgManifest.js"
+ src="/_next/static/hTrd3Ke-uPikssSFB-xRh/_ssgManifest.js"
async=""
></script>
</body>
test-pnp.sh
Outdated
mkdir -p "./e2e-tests/$testCase" | ||
cp -r "./examples/$testCase/." "./e2e-tests/$testCase" | ||
cd "./e2e-tests/$testCase" | ||
mkdir -p "/tmp/e2e-tests/$testCase" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't Windows friendly, should use something like mktemp
to get a temp folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merceyz changed to use mktemp -d
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.4s | 10.5s | |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.08 | 2.005 | -0.08 |
/ avg req/sec | 1201.82 | 1246.84 | +45.02 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.361 | 1.302 | -0.06 |
/error-in-render avg req/sec | 1837.22 | 1920.16 | +82.94 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 12.5s | 12.4s | -159ms |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.18 MB | 5.18 MB | ✓ |
Webpack 5 Mode (Decrease detected ✓)
General
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 13s | 12.8s | -171ms |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.037 | 2.078 | |
/ avg req/sec | 1227.05 | 1203.24 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.3 | 1.293 | -0.01 |
/error-in-render avg req/sec | 1923.45 | 1933.07 | +9.62 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-3bd7d6bd..868b.js gzip | 13 kB | 13 kB | ✓ |
778-d412f8e7..3ee1.js gzip | 6.56 kB | 6.56 kB | ✓ |
838-adcbad39..6e83.js gzip | 31.1 kB | 31.1 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-6a6a792..6877.js gzip | 96 B | 96 B | ✓ |
webpack-e302..54e9.js gzip | 954 B | 954 B | ✓ |
Overall change | 91 kB | 91 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-a0..538c.js gzip | 88 B | 88 B | ✓ |
Overall change | 88 B | 88 B | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 585 B | 585 B | ✓ |
link.html gzip | 592 B | 592 B | ✓ |
withRouter.html gzip | 581 B | 581 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "3rSaJYCmeOzxVVbXXLW_l",
+ "buildId": "1ASuPKMc2OtSePjl37Tjc",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/3rSaJYCmeOzxVVbXXLW_l/_buildManifest.js"
+ src="/_next/static/1ASuPKMc2OtSePjl37Tjc/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/3rSaJYCmeOzxVVbXXLW_l/_ssgManifest.js"
+ src="/_next/static/1ASuPKMc2OtSePjl37Tjc/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "3rSaJYCmeOzxVVbXXLW_l",
+ "buildId": "1ASuPKMc2OtSePjl37Tjc",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/3rSaJYCmeOzxVVbXXLW_l/_buildManifest.js"
+ src="/_next/static/1ASuPKMc2OtSePjl37Tjc/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/3rSaJYCmeOzxVVbXXLW_l/_ssgManifest.js"
+ src="/_next/static/1ASuPKMc2OtSePjl37Tjc/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "3rSaJYCmeOzxVVbXXLW_l",
+ "buildId": "1ASuPKMc2OtSePjl37Tjc",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/3rSaJYCmeOzxVVbXXLW_l/_buildManifest.js"
+ src="/_next/static/1ASuPKMc2OtSePjl37Tjc/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/3rSaJYCmeOzxVVbXXLW_l/_ssgManifest.js"
+ src="/_next/static/1ASuPKMc2OtSePjl37Tjc/_ssgManifest.js"
async=""
></script>
</body>
test-pnp.sh
Outdated
|
||
for testCase in "${testCases[@]}" | ||
do | ||
cd $initialDir | ||
testTarget=$(mktemp -d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testTarget=$(mktemp -d) | |
testTarget=$(mktemp -d next-e2e-XXXX) |
Makes them easier to clean up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merceyz this creates the temp folder in the current directory unfortunately. I think you want mktemp -d -t next-e2e
instead, but the -t
option seems deprecated in newer versions, so I'm not sure if it should be used.
I have a slightly improved version that creates the temp dir only once and then creates subfolders for each test case instead. Also it has a trap
to remove the temp dir on exit. Let me know if you want me to push that.
+tempDir=$(mktemp -d)
+trap 'rm -rf -- "$tempDir"' EXIT
for testCase in "${testCases[@]}"
do
- testTarget=$(mktemp -d)
+ testTarget="$tempDir/$testCase"
+
+ mkdir -p "$testTarget"
Stats from current PRDefault Server Mode (Decrease detected ✓)General
Page Load Tests Overall decrease
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.733 | 1.713 | -0.02 |
/ avg req/sec | 1442.45 | 1459.01 | +16.56 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.095 | 1.119 | |
/error-in-render avg req/sec | 2283.73 | 2234.14 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.2s | 10.3s | |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.18 MB | 5.18 MB | ✓ |
Webpack 5 Mode (Decrease detected ✓)
General
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.7s | 10.9s | |
nodeModulesSize | 77.6 MB | 77.6 MB | ✓ |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.68 | 1.75 | |
/ avg req/sec | 1487.69 | 1428.73 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.093 | 1.097 | 0 |
/error-in-render avg req/sec | 2287.93 | 2278.94 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-3bd7d6bd..868b.js gzip | 13 kB | 13 kB | ✓ |
778-d412f8e7..3ee1.js gzip | 6.56 kB | 6.56 kB | ✓ |
838-adcbad39..6e83.js gzip | 31.1 kB | 31.1 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-6a6a792..6877.js gzip | 96 B | 96 B | ✓ |
webpack-e302..54e9.js gzip | 954 B | 954 B | ✓ |
Overall change | 91 kB | 91 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-a0..538c.js gzip | 88 B | 88 B | ✓ |
Overall change | 88 B | 88 B | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 585 B | 585 B | ✓ |
link.html gzip | 592 B | 592 B | ✓ |
withRouter.html gzip | 581 B | 581 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "4irRG0byyiTKrOSFDL6E1",
+ "buildId": "SJ8_DAUECkLaEgFQRxzA5",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/4irRG0byyiTKrOSFDL6E1/_buildManifest.js"
+ src="/_next/static/SJ8_DAUECkLaEgFQRxzA5/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/4irRG0byyiTKrOSFDL6E1/_ssgManifest.js"
+ src="/_next/static/SJ8_DAUECkLaEgFQRxzA5/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "4irRG0byyiTKrOSFDL6E1",
+ "buildId": "SJ8_DAUECkLaEgFQRxzA5",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/4irRG0byyiTKrOSFDL6E1/_buildManifest.js"
+ src="/_next/static/SJ8_DAUECkLaEgFQRxzA5/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/4irRG0byyiTKrOSFDL6E1/_ssgManifest.js"
+ src="/_next/static/SJ8_DAUECkLaEgFQRxzA5/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "4irRG0byyiTKrOSFDL6E1",
+ "buildId": "SJ8_DAUECkLaEgFQRxzA5",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/4irRG0byyiTKrOSFDL6E1/_buildManifest.js"
+ src="/_next/static/SJ8_DAUECkLaEgFQRxzA5/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/4irRG0byyiTKrOSFDL6E1/_ssgManifest.js"
+ src="/_next/static/SJ8_DAUECkLaEgFQRxzA5/_ssgManifest.js"
async=""
></script>
</body>
Failing test suitesCommit: 1c9ad4d test/integration/app-document-style-fragment/test/index.test.js
Expand output● Custom Document Fragment Styles › correctly adds styles from fragment styles key
test/integration/amphtml-fragment-style/test/index.test.js
Expand output● AMP Fragment Styles › adds styles from fragment in AMP mode correctly
test/integration/amphtml/test/index.test.js
Expand output● AMP Usage › production mode › combined styles › should combine style tags
test/integration/basepath/test/index.test.js
Expand output● basePath development › Hot Module Reloading › editing a page › should update styles in a dynamic component correctly
● multi-level basePath development › Hot Module Reloading › editing a page › should update styles in a dynamic component correctly
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 9.1s | 9s | -193ms |
nodeModulesSize | 77.6 MB | 77.6 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.77 | 1.748 | -0.02 |
/ avg req/sec | 1412.7 | 1429.86 | +17.16 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.155 | 1.102 | -0.05 |
/error-in-render avg req/sec | 2164.04 | 2269.21 | +105.17 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.8s | 10.5s | -270ms |
nodeModulesSize | 77.6 MB | 77.6 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-9e3e4e6..2023.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.18 MB | 5.18 MB | ✓ |
Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 11s | 11.2s | |
nodeModulesSize | 77.6 MB | 77.6 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.77 | 1.8 | |
/ avg req/sec | 1412.79 | 1388.9 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.13 | 1.147 | |
/error-in-render avg req/sec | 2212.53 | 2179.48 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-3bd7d6bd..868b.js gzip | 13 kB | 13 kB | ✓ |
778-d412f8e7..3ee1.js gzip | 6.56 kB | 6.56 kB | ✓ |
838-adcbad39..6e83.js gzip | 31.1 kB | 31.1 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-6a6a792..6877.js gzip | 96 B | 96 B | ✓ |
webpack-e302..54e9.js gzip | 954 B | 954 B | ✓ |
Overall change | 91 kB | 91 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-a0..538c.js gzip | 88 B | 88 B | ✓ |
Overall change | 88 B | 88 B | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 585 B | 585 B | ✓ |
link.html gzip | 592 B | 592 B | ✓ |
withRouter.html gzip | 581 B | 581 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "DKN7GT3BnR-x_uq9vKRbV",
+ "buildId": "NDrdffa3orCblHvSs_PwO",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/DKN7GT3BnR-x_uq9vKRbV/_buildManifest.js"
+ src="/_next/static/NDrdffa3orCblHvSs_PwO/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/DKN7GT3BnR-x_uq9vKRbV/_ssgManifest.js"
+ src="/_next/static/NDrdffa3orCblHvSs_PwO/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "DKN7GT3BnR-x_uq9vKRbV",
+ "buildId": "NDrdffa3orCblHvSs_PwO",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/DKN7GT3BnR-x_uq9vKRbV/_buildManifest.js"
+ src="/_next/static/NDrdffa3orCblHvSs_PwO/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/DKN7GT3BnR-x_uq9vKRbV/_ssgManifest.js"
+ src="/_next/static/NDrdffa3orCblHvSs_PwO/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "DKN7GT3BnR-x_uq9vKRbV",
+ "buildId": "NDrdffa3orCblHvSs_PwO",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/DKN7GT3BnR-x_uq9vKRbV/_buildManifest.js"
+ src="/_next/static/NDrdffa3orCblHvSs_PwO/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/DKN7GT3BnR-x_uq9vKRbV/_ssgManifest.js"
+ src="/_next/static/NDrdffa3orCblHvSs_PwO/_ssgManifest.js"
async=""
></script>
</body>
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 11.1s | 11.2s | |
nodeModulesSize | 73.3 MB | 73.3 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.269 | 2.118 | -0.15 |
/ avg req/sec | 1101.57 | 1180.2 | +78.63 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.547 | 1.53 | -0.02 |
/error-in-render avg req/sec | 1615.63 | 1634.3 | +18.67 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-7173c7a..5604.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 616 B | 616 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 609 B | 609 B | ✓ |
Overall change | 1.85 kB | 1.85 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 13.1s | 13.1s | -63ms |
nodeModulesSize | 73.3 MB | 73.3 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..43e3.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-7173c7a..5604.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-af..9390.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.19 MB | 5.19 MB | ✓ |
Webpack 5 Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 13.5s | 13.4s | -102ms |
nodeModulesSize | 73.3 MB | 73.3 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.256 | 2.242 | -0.01 |
/ avg req/sec | 1107.93 | 1114.89 | +6.96 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.617 | 1.55 | -0.07 |
/error-in-render avg req/sec | 1545.89 | 1613.23 | +67.34 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-3bd7d6bd..868b.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-23983e6..e59f.js gzip | 6.58 kB | 6.58 kB | ✓ |
webpack-e29b..5311.js gzip | 954 B | 954 B | ✓ |
Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-79..a497.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 585 B | 585 B | ✓ |
link.html gzip | 592 B | 592 B | ✓ |
withRouter.html gzip | 579 B | 579 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "N6DHVOI4qNxWeMXkiqtyF",
+ "buildId": "sWbi7_TiHKL_HWSVO0Jql",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/N6DHVOI4qNxWeMXkiqtyF/_buildManifest.js"
+ src="/_next/static/sWbi7_TiHKL_HWSVO0Jql/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/N6DHVOI4qNxWeMXkiqtyF/_ssgManifest.js"
+ src="/_next/static/sWbi7_TiHKL_HWSVO0Jql/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "N6DHVOI4qNxWeMXkiqtyF",
+ "buildId": "sWbi7_TiHKL_HWSVO0Jql",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/N6DHVOI4qNxWeMXkiqtyF/_buildManifest.js"
+ src="/_next/static/sWbi7_TiHKL_HWSVO0Jql/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/N6DHVOI4qNxWeMXkiqtyF/_ssgManifest.js"
+ src="/_next/static/sWbi7_TiHKL_HWSVO0Jql/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "N6DHVOI4qNxWeMXkiqtyF",
+ "buildId": "sWbi7_TiHKL_HWSVO0Jql",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/N6DHVOI4qNxWeMXkiqtyF/_buildManifest.js"
+ src="/_next/static/sWbi7_TiHKL_HWSVO0Jql/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/N6DHVOI4qNxWeMXkiqtyF/_ssgManifest.js"
+ src="/_next/static/sWbi7_TiHKL_HWSVO0Jql/_ssgManifest.js"
async=""
></script>
</body>
@Timer @lfades @timneutkens @ijjk Could anybody please review? It would allow use to use Yarn 2 with PNP |
I would prefer the title to be changed as it's saying it's an issue with Yarn 2 which it isn't, this is an issue unrelated to Yarn 2 NIT: Yarn 2 !== Yarn PnP |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.4s | 10.3s | -47ms |
nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.082 | 2.066 | -0.02 |
/ avg req/sec | 1200.91 | 1210.19 | +9.28 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.284 | 1.269 | -0.02 |
/error-in-render avg req/sec | 1947.36 | 1970.09 | +22.73 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 620 B | 620 B | ✓ |
withRouter.html gzip | 607 B | 607 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 12.5s | 12.5s | |
nodeModulesSize | 74.9 MB | 74.9 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.19 MB | 5.19 MB | ✓ |
Webpack 5 Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 12.3s | 12.5s | |
nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.02 | 1.984 | -0.04 |
/ avg req/sec | 1237.85 | 1260.36 | +22.51 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.285 | 1.224 | -0.06 |
/error-in-render avg req/sec | 1945.47 | 2043.19 | +97.72 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
webpack-HASH.js gzip | 954 B | 954 B | ✓ |
Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 587 B | 587 B | ✓ |
link.html gzip | 591 B | 591 B | ✓ |
withRouter.html gzip | 580 B | 580 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "-yVmsQYWKVKTaCtAu9DTQ",
+ "buildId": "G_b3eeHKmJk-P-kxKHM3S",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/-yVmsQYWKVKTaCtAu9DTQ/_buildManifest.js"
+ src="/_next/static/G_b3eeHKmJk-P-kxKHM3S/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/-yVmsQYWKVKTaCtAu9DTQ/_ssgManifest.js"
+ src="/_next/static/G_b3eeHKmJk-P-kxKHM3S/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "-yVmsQYWKVKTaCtAu9DTQ",
+ "buildId": "G_b3eeHKmJk-P-kxKHM3S",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/-yVmsQYWKVKTaCtAu9DTQ/_buildManifest.js"
+ src="/_next/static/G_b3eeHKmJk-P-kxKHM3S/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/-yVmsQYWKVKTaCtAu9DTQ/_ssgManifest.js"
+ src="/_next/static/G_b3eeHKmJk-P-kxKHM3S/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "-yVmsQYWKVKTaCtAu9DTQ",
+ "buildId": "G_b3eeHKmJk-P-kxKHM3S",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/-yVmsQYWKVKTaCtAu9DTQ/_buildManifest.js"
+ src="/_next/static/G_b3eeHKmJk-P-kxKHM3S/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/-yVmsQYWKVKTaCtAu9DTQ/_ssgManifest.js"
+ src="/_next/static/G_b3eeHKmJk-P-kxKHM3S/_ssgManifest.js"
async=""
></script>
</body>
if (!options) { | ||
return {} | ||
} | ||
const baseOptions = { styleModule: 'next/styled-jsx/style', ...options } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can just be a require.resolve
it seems.
const baseOptions = { styleModule: 'next/styled-jsx/style', ...options } | |
const baseOptions = { styleModule: require.resolve('styled-jsx/style'), ...options } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree but it needs to be behind a babel-loader
check - ref #19538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timneutkens tried that 1c9ad4d. But then something else broke, it seems that the change caused CSS from styled-jsx not to be generated. Not sure if this is related to the issue @merceyz mentions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note that even if we could use require.resolve('styled-jsx/style')
, it would still be necessary to export next/styled-jsx
, given that the project that depends on next.js won't be able to import styled-jsx
directly.
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 8.6s | 8.6s | -20ms |
nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.683 | 1.799 | |
/ avg req/sec | 1485.62 | 1389.79 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.116 | 1.151 | |
/error-in-render avg req/sec | 2240.28 | 2172.82 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 620 B | 620 B | ✓ |
withRouter.html gzip | 607 B | 607 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.4s | 10.3s | -103ms |
nodeModulesSize | 74.9 MB | 74.9 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.19 MB | 5.19 MB | ✓ |
Webpack 5 Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
buildDuration | 10.4s | 10.5s | |
nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.728 | 1.601 | -0.13 |
/ avg req/sec | 1446.54 | 1561.19 | +114.65 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.171 | 1.156 | -0.02 |
/error-in-render avg req/sec | 2135.61 | 2161.86 | +26.25 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
webpack-HASH.js gzip | 954 B | 954 B | ✓ |
Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | cncf/next.js styled-jsx-yarn-2 | Change | |
---|---|---|---|
index.html gzip | 587 B | 587 B | ✓ |
link.html gzip | 591 B | 591 B | ✓ |
withRouter.html gzip | 580 B | 580 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "kkFqUN3hZTJ8ZPblOIx2-",
+ "buildId": "CYaoli8Qxac9inOlF4XXY",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/kkFqUN3hZTJ8ZPblOIx2-/_buildManifest.js"
+ src="/_next/static/CYaoli8Qxac9inOlF4XXY/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/kkFqUN3hZTJ8ZPblOIx2-/_ssgManifest.js"
+ src="/_next/static/CYaoli8Qxac9inOlF4XXY/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "kkFqUN3hZTJ8ZPblOIx2-",
+ "buildId": "CYaoli8Qxac9inOlF4XXY",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/kkFqUN3hZTJ8ZPblOIx2-/_buildManifest.js"
+ src="/_next/static/CYaoli8Qxac9inOlF4XXY/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/kkFqUN3hZTJ8ZPblOIx2-/_ssgManifest.js"
+ src="/_next/static/CYaoli8Qxac9inOlF4XXY/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "kkFqUN3hZTJ8ZPblOIx2-",
+ "buildId": "CYaoli8Qxac9inOlF4XXY",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/kkFqUN3hZTJ8ZPblOIx2-/_buildManifest.js"
+ src="/_next/static/CYaoli8Qxac9inOlF4XXY/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/kkFqUN3hZTJ8ZPblOIx2-/_ssgManifest.js"
+ src="/_next/static/CYaoli8Qxac9inOlF4XXY/_ssgManifest.js"
async=""
></script>
</body>
@merceyz @timneutkens Is there anything I can do to move this PR forward? |
When using pnpm / yarnPnP to install next.js, styled-jsx as dependency is not hoisted in the top level node_modules, it will fail when nodejs is trying to resolve `styled-jsx/style` from project directory. Re-export `styled-jsx/style` in next.js and let swc/babel plugin compile the import path it to `next/dist/shared/lib/styled-jsx` Resolves #10149 Closes #21320 Closes #9325 Co-authored-by: Tim Neutkens <[email protected]>
Fix
Your application tried to access styled-jsx, but it isn't declared in your dependencies
error thrown when using yarn 2 with PNP enabled (which is the default).#11224 describes the current behavior and #10149 explains the cause and a possible solution. Also #9325 explains why
styled-jsx
can't be added as a dependency either.The solution is to:
styled-jsx/style
asnext/styled-jsx/style
.styleModule: 'next/styled-jsx/style'
tostyled-jsx
so it injects an import with that path on the pages, instead of usingstyled-jsx/style
.Notes:
with-styled-jsx
totest-pnp.sh
. Note that, in order for the tests to fail, they must be moved outside of the next.js directory, otherwise they give a false negative.styled-jsx/css
asnext/styled-jsx/css
. Not sure ifserver
andmacro
should also be exposed, probably yes?next/styled-jsx/css
should be imported instead ofstyled-jsx/css
.