-
Notifications
You must be signed in to change notification settings - Fork 257
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
Bug with yarn berry: @vue/test-utils tried to access @vue/compiler-dom #2107
Comments
The peer dependency is marked as optional using Maybe that should not be the case as it used to compile slots (I don't remember why it was marked optional). Would you like to open a PR to remove the optional from the pakage.json file and see if that fixes the issue? We would greatly appreciate it |
Thanks for your answer. Now it looks like that this commit b08b1f0 leads to this problem. But yes, how i can double check this?
but now i don't know how i change this line https://github.com/stefpb/vue-test-utils-yarn-issue/blob/main/Dockerfile#L21 to say yarn to load the library from there :/ |
Yes, it's hard to test. But I think you can safely open a PR to remove |
The `processSlot` function needs `compiler-dom` so the dependency should not be marked as optional. Fixes vuejs#2107
The `processSlot` function needs `compiler-dom` so the dependency should not be marked as optional. Fixes vuejs#2107
The `processSlot` function needs `compiler-dom` so the dependency should not be marked as optional. Fixes #2107
Unfortantely this Pull-Request (#2114) is not solving #2107. With 2.4.1 i have still this issue: https://github.com/stefpb/vue-test-utils-yarn-issue/tree/main My intention was to revert b08b1f0 as you can see in #2113. Could you also restore the optional dependencies to the original state, as was intended? |
If this fixes it, I say we go for it. Can you make a fresh PR @stefpb? I don't really know the intricacies of optionalDeps vs peer etc, it sounds like this is something you know well and have a fix for. |
Otherwise you get with yarn berry an error @vue/test-utils tried to access @vue/compiler-dom (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound. May cause vuejs#1958 again. May fixes vuejs#2107.
PR has been submitted. If a new release is available, I'll test that version here: https://github.com/stefpb/vue-test-utils-yarn-issue/blob/main/Dockerfile#L21 |
Any updates on planned fixes for this? Checking the current package.json @vue/compiler-dom is still listed as a |
In order to fix this issue with Yarn (in PNP mode) I had to add the following to my .yarnrc.yml to fake the dependencies so that things work.
|
Describe the bug
with
yarn berry
i have an issue with the version2.4.0
.To Reproduce
https://github.com/stefpb/vue-test-utils-yarn-issue
Expected behavior
test-runner passed
Related information:
Look to my minimal repo.
The text was updated successfully, but these errors were encountered: