Closed patrickedqvist closed 1 year ago
Getting the same error. This is due to line 2 in index.js
of the package:
module.exports = require('./dist/index.js');
module.exports.__esModule = true;
Is there a workaround to use in the meantime?
Is there a workaround to use in the meantime?
"Well... I went into the @radix-ui/react-icons folder inside node_modules and commented out the line containing module.exports.__esModule = true;
. It worked for me."
Is there a workaround to use in the meantime?
Just got the same error. Overcame it by 'use client' directive in the component which uses icon.
Hey, sorry for the delay. Just released 1.2.0 with @shuding's fix, let me know if it works.
Confirm, this does work in 1.2.0
Hello Radix,
First of all thanks for this fantastic icon set.
I've set up a new Next.js 13 project along with the new app directory but whenever I try to import one Icon from the installed npm package I get the following error
Here is the small utility component that is referred to as the
components/ui/Icons/Icons.tsx