Running serve twice without code changes breaks any of the typescript templates.
See original GitHub issueVersion
3.0.0-alpha.4
Reproduction link
Steps to reproduce
-
Run
vue create project
, any settings that includes typescript will do. -
“cd project” and
npm run serve
It compiles and runs without errors. -
Stop the process (ctrl-break) and run once more:
npm run serve
.
What is expected?
It’s expected to compile and run again without errors.
What is actually happening?
It throws an error:
Module build failed: Error: Could not find file: '/var/www/test/src/App.vue'. at getValidSourceFile (/var/www/test/node_modules/typescript/lib/typescript.js:95642:23) at Object.getEmitOutput (/var/www/test/node_modules/typescript/lib/typescript.js:96002:30) at Object.getEmitOutput (/var/www/test/node_modules/ts-loader/dist/instances.js:155:41) at getEmit (/var/www/test/node_modules/ts-loader/dist/index.js:172:35) at successLoader (/var/www/test/node_modules/ts-loader/dist/index.js:42:11) at Object.loader (/var/www/test/node_modules/ts-loader/dist/index.js:29:12)
I assume this is a cache-issue, since making any script changes and running again fixes the problem temporarily. I’ve tried all combinations of babel polyfills on/off and class style decorators on/off, on win10 and centos 7, giving the same results.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
@ravjsdev yeah, I’ve noticed that yesterday as well, but it should be fixed for real in the next release 😉
the same issue. 3.0.0-alpha.4 on windows 10,
It helps only to clear
../node_modules/.cache
before each run serve command