-
Notifications
You must be signed in to change notification settings - Fork 434
example error with typescript 2.6.1 #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have problem after updating typescript too.
|
@keenwon, there is new feature in typescript 2.6 |
@justerest |
This seems only to happen if we compile it with ts-loader. tsc does not provide such errors. I have no idea what is the root cause. @HerringtonDarkholme Do you have any idea to fix this? |
Could this be related to one of TypeScripts new features?
https://blogs.msdn.microsoft.com/typescript/2017/10/31/announcing-typescript-2-6/ |
@HerringtonDarkholme I guess there is another cause regarding this problem because the example in this repo also get this kind of error even though it does not depends on Vuex. |
@ktsn Oh, I see. I guess the problem is strictFunctionTypes. Investigating. |
Already fixed in vuejs/vue#6819. need releasing. |
Thanks for investigation. OK, let's wait the next vue release. |
Hi all, just encountered this issue (or something similar) and it was blocking me majorly. You can downgrade to 2.5, or add "strictFunctionTypes": false temporarily to get across this hurdle. Not sure why this was closed, because this was a hard one to figure out. Hope this helps any others (and thanks @HerringtonDarkholme for the key piece of information I needed 👍 ) |
@darylteo Vue2.5.3 has released. Try it! |
@HerringtonDarkholme woot! just tried it and it works! thanks x2! |
if you updated Vue and still have same issue - make sure you did not forget to update vue-loader, vue-template-compiler and etc |
Where can I find information which version of vue, typescript, vue-loader work together. It's really a nightmare. |
I'm not sure if I can do this, if not please delete my post @PSausM I was very confused too so I decide to create an article how to fix every issue I got https://webdevelop.pro/vuejs-with-typescript.html |
It happens today.my typescript version is 3.2.3. add |
Having same issue today with a fresh installation. |
Same issue today as well with a fresh install. Been using Vue-CLI for a few weeks and I love it! So far trying typescript has been the largest hurdle I've reached with it, and seeing as I just started learning typescript it's even more painful. How can we get the fresh install to build smoothly without needing modification, so beginners to Vue can feel even more comfortable. It would be so great if this could be resolved! |
Was going through the Microsoft Vue TypeScript Vue Starter tutorial thing and ran into this issue. I agree with @skyfly200, would be nice to resolve for anyone new coming in that may not think to search the error. |
Please don't post to the issue which is closed 1 year ago. The issue with Vue v2.5.18 is already filed on #294 |
package info:
The text was updated successfully, but these errors were encountered: