状況
- Docker
- node:node:20.11.0-bullseye-slim
- pracel
このイメージで作られたコンテナに入り、npx parcel build
を実行すると発生
ファイル構造
.
├── build
│ └── なし
├── node_modules
│ ├── ...
├── src
│ └── index.ts
├── .parcel-cache
│ └── モロモロ
├── Dockerfile
├── tsconfig.json
├── package.json
└── yarn.lock
事象
以下のコードを実行時に生じたエラー
npx parcel build ./src/index.ts --dist-dir ./build
解決策
.parcel-cache
を削除することで動いた。