delucis / astro-auto-import

Auto-import components in Astro projects
84 stars 2 forks source link

astro-auto-import stoped working after astro update to 2.5 #18

Closed guizmo closed 1 year ago

guizmo commented 1 year ago

When runing the "astro build" command, i get the following error message in the console

[astro:jsx] /path/to/project/src/pages/page-quizz.mdx: Could not render `Quiz`. No matching import has been found for `Quiz`.
Screenshot 2023-05-24 at 14 58 43

It used to work under Astro 2.1 If i import manually the "Quizz" component, i don't get the error...

delucis commented 1 year ago

Thanks for the report! Not sure what’s happening, but will take a look.

delucis commented 1 year ago

Hi @guizmo — haven’t been able to reproduce this. Could you share your repo’s before/after branches or a minimal reproduction (e.g. on StackBlitz: https://astro.new/minimal)?

guizmo commented 1 year ago

Hi @delucis , thanks for looking into it, i have managed to make a simple example work... so there is obviously something wrong with my component

I'll investigate... sorry for the troubles

guizmo commented 1 year ago

I found the issue, i removed the remarkPlugins form the mdx conf its extended from the markdown conf anyway

mdx({
      // remarkPlugins: [remarkMermaid, remarkGFM],
      drafts: false,
      gfm: true
    }),
delucis commented 1 year ago

Ah, gotcha. Thanks for the update!