Skip to content

Commit

Permalink
Added Fix for ESM Module Error in Next.js (#69)
Browse files Browse the repository at this point in the history
* Added fix for ESM

* Updated package.json
  • Loading branch information
Harry-Ross authored Feb 13, 2024
1 parent 2d252c6 commit 2c86220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/components/PhoneButton/PhoneButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { isMobile } from "react-device-detect";
import { FaPhoneAlt } from "react-icons/fa";
// Fix for Next.js as per https://github.com/react-icons/react-icons/issues/821#issuecomment-1747679972
import { FaPhoneAlt } from "react-icons/fa/index.js";
import { cx } from "../../util/cx";
import { CustomLink } from "../CustomLink";

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssw.megamenu",
"version": "4.1.1",
"version": "4.1.2",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down

0 comments on commit 2c86220

Please sign in to comment.