-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Open
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problem
Description
Vue version
3.3.2
Link to minimal reproduction
https://github.com/vojvodics/vue3.3.1-jest-reproduction-example
Steps to reproduce
Clone reproduction repository and run npm run test
What is expected?
Tests should pass
What is actually happening?
Tests are failing with the following error:
[@vue/compiler-sfc] No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.
System Info
No response
Any additional comments?
A hacky solution is provided in the repo example. It is based on these files:
https://github.com/vuejs/core/blob/v3.3.2/packages/vue/compiler-sfc/index.js
https://github.com/vuejs/core/blob/v3.3.2/packages/vue/compiler-sfc/register-ts.js
Also related:
*initially it was v3.3.1, but I updated it to v3.3.2 and it is still present
Metadata
Metadata
Assignees
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problem