LoginSignup
0
0

RSCのミニマルフレームワーク”Waku”をデプロイしようとしたら、無理だった話

Posted at

はじめに

最近出た、Next.jsの小さいバージョンみたいなフレームワークの"Waku"をデプロイしようとしたら、できなかったので共有ついでにQiitaへ投稿します

事象

Wakuというフレームワーク使用して、雑なWebアプリを作成して、いざデプロイしようとしたら以下のエラーになった。
ただし、ローカルでもデプロイワークフロー上においても、ビルドはできている。

公式サイトを見てみた

スクリーンショット 2024-05-19 13.55.23.png

すごいコマンド一発でできそうに書いてありますが、実際にやってみると・・・

package.json
{
  "name": "dora-timer",
  "version": "0.0.0",
  "type": "module",
  "private": true,
  "scripts": {
    "dev": "waku dev",
    "build": "waku build",
    "start": "waku start",
    "deploy": "vercel"
  },
  "dependencies": {
    "react": "19.0.0-canary-e3ebcd54b-20240405",
    "react-dom": "19.0.0-canary-e3ebcd54b-20240405",
    "react-server-dom-webpack": "19.0.0-canary-e3ebcd54b-20240405",
    "vercel": "^34.2.0",
    "waku": "0.20.1"
  },
  "devDependencies": {
    "@types/react": "18.2.74",
    "@types/react-dom": "18.2.24",
    "autoprefixer": "10.4.19",
    "tailwindcss": "3.4.3",
    "typescript": "5.4.4"
  }
}
shell
$ npm i vercel
$ npm run deploy
> dora-timer@0.0.0 deploy
> vercel

Vercel CLI 34.2.0
> > No existing credentials found. Please log in:
? Log in to Vercel Continue with GitHub
> Success! GitHub authentication complete for
? Set up and deploy “”? yes
? Which scope do you want to deploy to? t-abe09's projects
? Found project “”. Link to it? yes
🔗  Linked to (created .vercel and added it to .gitignore)
🔍  Inspect:  [5s]
✅  Preview:  [5s]
Error: The following Serverless Functions contain an invalid "runtime":
  - RSC (nodejs18.x)

githunにPushした際の、画面のエラーも同じエラーとなります。

スクリーンショット 2024-05-19 14.04.08.png

まとめ

最近できたばかりのフレームワークですし、気長に待ちたいと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0