SC9001 ICE building @hono/node-server serve-static subpath (expected dyn, got func)

オープン
#4,636 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
node.js, typescript

調査の方向性

Start by reproducing the ICE with the shown imports using scriptc 0.4.17 and @hono/node-server 2.1.11. The payload names no compiler files or tests, so trace analysis of the serve-static subpath import to the failing nodeIsland.apply call. Done means the import compiles without the ICE and serveStatic can be used by the native server.

索引モデルが issue の本文から書いたものです。

説明

Summary

scriptc build of a program importing @hono/node-server/serve-static crashes with an internal compiler error:

SC9001: libCall nodeIsland.apply arg 0: expected dyn, got func — please report

Observed on scriptc 0.4.17, @hono/node-server 2.1.11 (the scriptc built-in shim otherwise works — serve() handles HTTP/1.1 correctly).

Reproduction

import { serveStatic } from '@hono/node-server/serve-static'
import { serve } from '@hono/node-server'
// any use; the import alone triggers the ICE during analysis

Impact

Found while compiling doop's HTTP tier to ELF: the workaround is an inline static-file handler. A fix would let native servers use the stock serveStatic middleware.

Environment

  • scriptc 0.4.17
  • @hono/node-server 2.1.11
主要言語
TypeScript
スター
6.7k
フォーク
229
平均マージ
14時間 29分
マージ済み PR(30日)
787

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vercel-labs/scriptc のほかの issue

vercel-labs/scriptc の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。