Skip to content

Commit

Permalink
fix: file replace
Browse files Browse the repository at this point in the history
  • Loading branch information
gronxb committed Sep 14, 2024
1 parent e94465e commit ce62f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/checkAvailableIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const checkAvailableIcons = async (
) => {
try {
const icons = import.meta.resolve(`react-icons/${prefix}`);
const file = await fs.readFile(icons, "utf8");
const file = await fs.readFile(icons.replace("file://", ""), "utf8");
return (
iconNames.length > 0 &&
iconNames.every((iconName) => file.includes(iconName))
Expand Down

0 comments on commit ce62f7b

Please sign in to comment.