Closed Colisan closed 2 years ago
Hello, thank you for taking time filling this issue!
However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).
I hope to see your helper-created issue very soon!
Hi, I encounter the following, very puzzling, build&runtime error :
Files
index.ts
test.ce.vue
webpack.config.js
tsconfig.json
Build Error
When building, somehow the loader think that the exports from the vue file are instead the exports from the index.ts file. The same happen in another big project where the .vue export seems to be confused from any random exports in any random .ts file.
Maybe there's a conflit between vue-loader and ts-loader? Maybe my configuration is wrong?
Workaround
If I replace the script with a non-Typescript one:
It works fine and without error. However, not using Ts is not an option in my context and I'd prefer if we could fix the causes instead of dodging the consequences =)