SC9001 ICE building @hono/node-server serve-static subpath (expected dyn, got func)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- backend, build-system
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 229
- Avg merge
- 14h 29m
- Merged PRs (30d)
- 787
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel-labs/scriptc
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
vercel-labs/scriptc#4865 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
vercel-labs/scriptc#4864 ·
Maintainers usually reply within 1 day
-
Windows ARM64 as a cross-compile targetPossibly taken @hum-n claimed this 1 day ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
vercel-labs/scriptc#4858 ·
Maintainers usually reply within 1 day
-
post-merge-bisect-unresolved
Difficulty 3/5 1-2 days Newbie friendliness 43/100
vercel-labs/scriptc#4791 ·
Maintainers usually reply within 1 day
-
post-merge-bisect-unconfirmed
Difficulty 5/5 Over a week Newbie friendliness 12/100
vercel-labs/scriptc#4755 · 1 comment ·
Maintainers usually reply within 1 day
All issues in vercel-labs/scriptc
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
agent/quality testing
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
juspay/agent-distro#203 ·
Maintainers usually reply within 1 day