-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
how i can do about this error? #38
Comments
That function can be used only on server, not in browser. You are trying to use it in browser. |
oh!... i see! thanks for your answer |
Oh, sorry!!! Is the server you're referring to the backend? |
Yes. You are trying to scan a directory, that's a file system function. Browser cannot do that. This package is designed to work only in Node.js environment (also I tried to make it work in Bun too, but some dependencies don't work with it yet). It is not for browser. |
so, do you know how I can register the icons in the current project folder |
You need to run that import script separately to generate file, write that file, then use that file in your project. Do not bundle script that imports it. |
Thank you so much!... I wish you the best in everything you do! |
issue
I used the
importDirectory
function in nuxt3 and I get this error in the iconify internal functionso, Below is the part that uses
importDirectory
The text was updated successfully, but these errors were encountered: