-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
step 3 for middleware architecture #557
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
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.
crashed inside analyzeEntries
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.
Subject: [PATCH] fix
---
Index: e2e/fixtures/rsc-basic/tsconfig.config.json
===================================================================
diff --git a/e2e/fixtures/rsc-basic/tsconfig.config.json b/e2e/fixtures/rsc-basic/tsconfig.config.json
deleted file mode 100644
--- a/e2e/fixtures/rsc-basic/tsconfig.config.json (revision 29c465342cef32a272d0cb3228d5505d37e4b49f)
+++ /dev/null (revision 29c465342cef32a272d0cb3228d5505d37e4b49f)
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "compilerOptions": {
- "outDir": "./dist/config"
- },
- "include": ["waku.config.ts"]
-}
Index: e2e/fixtures/rsc-basic/tsconfig.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/e2e/fixtures/rsc-basic/tsconfig.json b/e2e/fixtures/rsc-basic/tsconfig.json
--- a/e2e/fixtures/rsc-basic/tsconfig.json (revision 29c465342cef32a272d0cb3228d5505d37e4b49f)
+++ b/e2e/fixtures/rsc-basic/tsconfig.json (date 1709342708116)
@@ -13,10 +13,5 @@
"outDir": "./dist",
"composite": true
},
- "include": ["./src"],
- "references": [
- {
- "path": "./tsconfig.config.json"
- }
- ]
+ "include": ["./src", "./waku.config.ts"]
}
I believe this is a vite related issue, let me check where it comes from |
OHHH, related: vitejs/vite#15870 |
#557 (comment) fixes it. pretty interesting. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
This reverts commit 77854a8.
* import('waku/middleware/rsc'), | ||
* ] | ||
*/ | ||
middleware?: (cmd: 'dev' | 'start') => Promise<{ default: Middleware }>[]; |
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.
Is it better to do loadMiddleware: (cmd) => Promise<Middleware[]>
?
@@ -18,7 +18,7 @@ | |||
"react": "18.3.0-canary-6c3b8dbfe-20240226", | |||
"react-dom": "18.3.0-canary-6c3b8dbfe-20240226", | |||
"react-server-dom-webpack": "18.3.0-canary-6c3b8dbfe-20240226", | |||
"waku": "https://pkg.csb.dev/dai-shi/waku/commit/07b708cd/waku" | |||
"waku": "workspace:*" |
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.
We'll go back to csb version later, or maybe "file" one.
step 3 for #513 following #545 and #550