-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Unknown file extension ".css" #177
Comments
I added a commit which triggers this issue here |
Based on your description, it seems that this has nothing to do with Velite. Anyway, I will try to reproduce the problem you mentioned first. |
I think I know what the problem is. I need some time to see if there is a better solution. |
a similar issue also occurred with another component in the registry which I completely removed called "wavy-dot-pattern" and these issues didn't occur with contentlayer which led me to believe it was something to do with the way velite is bundling / rendering the markdown |
Yes, the reason is that I stopped bundling third-party libraries in the velite.config.ts in a previous version, which is different from contentlayer Please wait for me for a moment |
A brief explanation of the cause of the problem: In the reference files of However, the esbuild used internally by Velite tries to bundle and execute these modules, which are not for the Node.js runtime, leading to the issue. Although Velite can ignore the bundling of these modules by specifying esbuild's I personally think there are two solutions to this problem:
Since the original codebase seems to be missing some files, the PR is not yet complete. If you agree with my view, I can try to improve it when I have time. |
Note my usage in PR: const Component = lazy(() => import(`@/registry/components/examples/${component}`)) You cannot extract this path into a variable, as this will prevent the compiler from finding it properly. |
@dillionverma If there are no more questions, I will close this issue. |
Trying to migrate from contentlayer to velite
PR is here magicuidesign/magicui#189
Ran existing code base through velite but get this error
react-tweet
is a dependency included in a code snippet which gets rendered as a component using mdxThe text was updated successfully, but these errors were encountered: