question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running serve twice without code changes breaks any of the typescript templates.

See original GitHub issue

Version

3.0.0-alpha.4

Reproduction link

http://I-do-not-have-a-link

Steps to reproduce

  1. Run vue create project, any settings that includes typescript will do.

  2. “cd project” and npm run serve It compiles and runs without errors.

  3. 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
yyx990803commented, Jan 30, 2018

@ravjsdev yeah, I’ve noticed that yesterday as well, but it should be fixed for real in the next release 😉

1reaction
buzzzzercommented, Jan 29, 2018

the same issue. 3.0.0-alpha.4 on windows 10,

It helps only to clear ../node_modules/.cache before each run serve command

Read more comments on GitHub >

github_iconTop Results From Across the Web

Announcing TypeScript 4.8 - Microsoft Developer Blogs
Putting many of the changes here together, we can now define the following function without any type assertions.
Read more >
Documentation - TypeScript 3.7
At its core, optional chaining lets us write code where TypeScript can immediately stop running some expressions if we run into a null...
Read more >
TypeScript is a waste of time. Change my mind.
A discussion on whether using TypeScript is overrated. ... However, there is no such evidence, and quite frankly, I personally am convinced ...
Read more >
Ahead-of-time (AOT) compilation - Angular
AOT compiles HTML templates and components into JavaScript files long before they are served to the client. With no templates to read and...
Read more >
The Last Guide For Angular Change Detection You'll Ever Need
Unfortunately, there exists no official guide on the official website about this topic. ... Angular provides two strategies to run change detections:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found