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
Given we import a TS type,
When we use that type in vue's defineProps<> API,
We get an error when running the unit tests:
[@vue/compiler-sfc] No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.
/Users/user/repos/vue-jest-reproduction-example/src/components/Example.vue
6 | import type {ExampleProps} from "@/components/ExampleProps";
7 |
8 | const data = defineProps<ExampleProps>();
| ^^^^^^^^^^^^