HerringtonDarkholme / vue-ts-loader

Type-check your script in your vue-loader
MIT License
91 stars 9 forks source link

Not working with newest version #5

Closed John0x closed 7 years ago

John0x commented 7 years ago

Hey, this vue-ts-laoder does not seem to work with the newest vue version. Can anyone confirm this?

HerringtonDarkholme commented 7 years ago

Please do provide a minimal reproduction. Why is this required?

Also, I would recommend you to use the original ts-loader. vue-ts-loader exists for compatibility.

John0x commented 7 years ago

Is there a guide on using the original ts-loader with vue single-file-component and typescript?

Well, I've followed the guide basically and always get this error: ERROR in ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./src/pages/home/home.vue Module build failed: Error: Could not find file: 'D:\dev\client\src\pages\home\home.vue'. at getValidSourceFile (D:\dev\client\node_modules\typescript\lib\typescript.js:79271:23) at Object.getEmitOutput (D:\dev\client\node_modules\typescript\lib\typescript.js:79638:30) at getEmit (D:\dev\client\node_modules\ts-loader\dist\index.js:99:43) at Object.loader (D:\dev\client\node_modules\ts-loader\dist\index.js:27:11) @ ./src/pages/home/home.vue 3:2-103 @ ./src/app.router.ts @ ./src/app.js @ ./src/client-entry.js @ multi app

John0x commented 7 years ago

I got it working now. Had a problem with my loader config. But I'm still interested in your statement, that I should use ts-loader. The above mentioned error message prevents me from using ts-loader itself.