-
Notifications
You must be signed in to change notification settings - Fork 36
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
Dependency resolution doesn't work as expected when a project *also* uses MDX 2 #47
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Oh wait, I'm wrong. Let me check more closely… |
I would say that this is a bug, yes, but I'm really scared to touch this logic because I didn't come up with it and I don't know much about dependency resolution 😔 I'll go through the logic more carefully later to see whether I can narrow it down, let me know if you'd like to help. |
It seems to have come from #22, specifically aleclarson@5fe7413 but I don't know enough to understand why the shift from plain imports to begin with (so I don't know what behaviour we'd be trying not to break by changing this) Happy to help if you can shed any more light on the purpose of that imports file! |
This comment should shed more light on that 👇
|
Hello! I've read the README, I know you're looking for a maintainer and also you don't want to hear about MDX 2 problems 🙂 but wanted to FYI in case you have any obvious answers, as I believe
imports.ts
is giving me issues in a project where MDX 2 is present (but this plugin should be ignoring it and using MDX 1)The issue manifests when using Storybook with storybook-builder-vite (which uses this plugin and MDX 1). This plugin attempts to require the incorrect version of
mdx-js/mdx
from the project rootnode_modules
rather than thenode_modules
right next to it.More details here storybookjs/builder-vite#234 and test reproduction here https://github.com/bensmithett/test-case-mdx-import
Appreciate any help or pointing me in the right direction.
The text was updated successfully, but these errors were encountered: