You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot find module 'vue-property-decorator' from 'HelloWorld.vue'
32 |
33 | <script lang="ts">
> 34 | import { Component, Prop, Vue } from 'vue-property-decorator';
| ^
35 |
36 | @Component
37 | export default class HelloWorld extends Vue {
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
at src/components/HelloWorld.vue:34:1
at Object.<anonymous> (src/components/HelloWorld.vue:27:3)
Things work fine if you aren't using typescript, so I suspect ts-jest is at fault. But to be honest this is my first steps into using jest with typescript so I'm a bit in over my head with troubleshooting.
The text was updated successfully, but these errors were encountered:
Did some more sleuthing this morning. Looked to be an issue with the version 7.1.0 of vue-property-decorator. Looks like @kaorun343 already pushed up a fix. Updating to version 7.1.1 and everything is happy.
Version
3.0.3
Reproduction link
https://github.com/phil-scott-78/vue-cli-jest-bug
Node and OS info
Node v8.11.2, npm 5.6, Windows 10
Steps to reproduce
vue create project
then
npm run test:unit
What is expected?
successful unit test run
What is actually happening?
receive this error
Things work fine if you aren't using typescript, so I suspect
ts-jest
is at fault. But to be honest this is my first steps into using jest with typescript so I'm a bit in over my head with troubleshooting.The text was updated successfully, but these errors were encountered: