Closed Darkproduct closed 3 years ago
This configuration works fine, if you remove the ESLintPlugin from webpack.mix.js
. The question now is: Where does it go wrong and why?
Or at least it translates fine to a usable application. Type hints are still ignored and there is no error whatsoever.
If someone finds this and has good additions to for the sample project, then please create a new issue there.
Description:
I'm trying to get TypeScript support on an existing Vue project. I would like to update gradually, keeping all the JavaScript code in place and using TypeScript for everything new or where there is a need for refactoring. Currently, I'm stuck on a strange problem. Running with
npm run hot
:Unfortunately, I can't find anything regarding this error
ERROR in parent.eval is not a function
.Even weirder is, that every time I re-write the
tsconfig.json
it works fine:Because this issue involves way too many config files, to reasonably post here, I created a small GitHub project:
https://github.com/Darkproduct/vue2-ts-test
The files to look at, are probably:
webpack.mix.js
tsconfig.json
.eslintrc.js
Steps To Reproduce:
npm install
npm run hot
tsconfig.json
on some editor and save it againStackOverflow Question
I asked this question on StackOverflow a few days ago, but so far no one had any idea. So I figured I ask here, because you guys should know best.