Closed5
noVNC が突然動かなくなった

noVNC encountered an error:
Uncaught SyntaxError: The requested module './util/browser.js' does not provide an export named 'supportsWebCodecsH264Decode'
http://localhost:6080/core/rfb.js:13:25
SyntaxError: The requested module './util/browser.js' does not provide an export named 'supportsWebCodecsH264Decode'
と出ていた

devcontainer 環境で利用していた
{
"image": "mcr.microsoft.com/devcontainers/base:bookworm",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true",
"moby": "true"
},
"ghcr.io/devcontainers/features/aws-cli:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
},
"ghcr.io/devcontainers/features/desktop-lite:1": {
"webPort": "6080",
"vncPort": "5901"
},
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
},
"customizations": {
"vscode": {
"extensions": [
"WakaTime.vscode-wakatime",
"YoavBls.pretty-ts-errors",
"mhutchie.git-graph",
"github.vscode-github-actions"
]
}
},
"forwardPorts": [6080],
"portsAttributes": {
"6080": {
"label": "desktop"
}
},
"runArgs": [
"--shm-size=2g",
"--memory=8g",
"--memory-swap=16g",
"--env-file",
".devcontainer/devcontainer.env"
],
"updateContentCommand": "",
"postCreateCommand": "npm i -g @antfu/ni && sudo apt-get install -y ripgrep bc",
"containerEnv": {
"VNC_RESOLUTION": "1920x1080x24"
}
}

o3 先生に聞いた

言われるがままに Cmd + Shift + R

なおった!! 🎉
このスクラップは2ヶ月前にクローズされました