-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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] RC-23 unable to find file #706
Comments
This comment has been minimized.
This comment has been minimized.
I tested it locally and it seemed to work; note that you needed to use |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Of course, I am using yarn init before.
|
So, the problem is in global store.
Everything works, when I disable global store. |
This comment has been minimized.
This comment has been minimized.
This issue reproduces on master:
|
Investigation Found the problem. ESLint requires the The problem is that The new module loses information, two in particular:
As a result of the second one, the PnP loader tries to regenerate it by finding the closest ancestor PnP hook ( Unfortunately, in the case of the global cache, the request is a file within the cache, and the closest ancestor doesn't exist (because the cache doesn't have a One last mystery: even if we're loading the preset through the regular Node resolver instead of the PnP resolver, why did the resolution failed? After all, as we can see in the error, we're resolving an absolute path. So it makes sense that it would fail to load its dependencies, but we can't even load it at all - what happens? The answer is that the Node resolver cheats: In order to be faster, they use a special native and internal How to fix? It's a bit difficult to say because frankly the whole I'll need to think some more about this. |
Please, don't forget, that it works in RC19. Compare the changes and you fill find solution. |
Yes, rc.19 didn't support multi-tree resolution (which is required for things such as Vue CLI or Create-React-App); everything was always resolved from the Something I may consider would be to exclusively enable this mode from packages installed via |
How I can do this? |
@arcanis Something I may consider would be to exclusively enable this mode from packages installed via yarn dlx. It's extremely rare in all other cases... Could you, please, tell me how I can do this. I want to use latest builds, but this issue is blocking upgrade for me. |
@arcanis Do you think the error with module resolution described here might be the same thing that also causes |
This is also the case with Docusaurus v2: facebook/docusaurus#3324. |
Describe the bug
This code worked in RC-19, but not works in RC-23.
The text was updated successfully, but these errors were encountered: