Closed Christian-Rinne closed 2 years ago
I got a similar issue with my Vue project but I just rolled back ts-loader
to 8.3.0. I also tried multiple versions of 9.x.x and they all produced the same error. I'm on Webpack 5.39.1
and TS 4.3.4
.
[tsl] ERROR in /home/rob/DEV/.../ImagePrepSettings.vue.ts(79,22) TS2339: Property 'showModal' does not exist on type 'Vue'. ts-loader-default_0c5a263502dc9404
I'm not a Vue user - would appreciate help from Vue folks with this. I'm wondering if there's some kind of webpack 4 dependency sneaking in. A minimal reproduction repo would help people working on this
I partly solved this issue using transpileOnly flag for development env. among with fork-ts-checker-webpack-plugin. Unfortunately lost dynamic type checking during the compilation process, but I managed to use vue-tsc for this. Anyway, looking forward to better solution for this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing as stale. Please reopen if you'd like to work on this further.
my setup in short: laravel 8 typescript vuejs
tsconfig.js
webpack.mix.js
ConfigurationPage.vue
DevDependencies in my package.json:
file/folder structur
The init.ts is empty. If i don't have at least one .ts file in my resources folder, the ts-loader throws an exception, says it cant find something to compile. I was reading, it's common to use an empty typescript file.
The Problem
Every time i make a change in ConfigurationPage.vue i got this execption in npm run watch-poll:
I dont get it, the init.ts is empty. It makes no sense to me.