quasarframework / quasar-cli

[DEPRECATED, <= 0.17) Quasar Framework - CLI
https://quasar.dev
MIT License
202 stars 50 forks source link

quasar build/dev fails to find router entry file when using TypeScript #164

Open dnasir opened 6 years ago

dnasir commented 6 years ago

Software version

OS: Windows 10 Node: 8.11.2 NPM: 6.3.0

Any other software related to your bug:

quasar-cli: 0.17.7 typescript: 3.0.1

What did you get as the error?

ENOENT: no such file or directory, open 'C:\projects\test-app\src\router\index.js'

What were you expecting?

For the build/serve to complete successfully.

What steps did you take, to get the error?

My project is fully written in TypeScript. I had a fully working build with the previous version of the CLI. I updated it today, and ran into this bug.

As a solution, I manually pointed Quasar to the router entry file, as demonstrated below:

sourceFiles: {
  router: 'src/router/index.ts',
},

This solved my problem.