bun
bun copied to clipboard
Typescript cannot find .vue file when running type-check in new Vue project through Docker image
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Linux 6.8.0-35-generic x86_64 x86_64
What steps can reproduce the bug?
When running the type-check
command on a newly created Vue project through the Docker image the following error is thrown:
src/main.ts(4,17): error TS2307: Cannot find module './App.vue' or its corresponding type declarations.
Running the same command through my host machine's Bun (same version) doesn't throw this error. Running it through Node doesn't throw it either.
Steps to reproduce:
Create a Vue project (with TypeScript support):
npm create vue@latest
cd vue-project
npm install
Run the following:
docker run --rm -v $PWD:/app -w /app oven/bun:1.1.17 run type-check
And see the following error:
$ vue-tsc --build --force
src/main.ts(4,17): error TS2307: Cannot find module './App.vue' or its corresponding type declarations.
What is the expected behavior?
No errors
What do you see instead?
src/main.ts(4,17): error TS2307: Cannot find module './App.vue' or its corresponding type declarations.
Additional information
Running the following commands do not throw this error:
bun run type-check
docker run --rm -v $PWD:/app -w /app node:20.15.0 npm run type-check