Hello,
I'm trying to use AUI components or at least AUI styling in my React App (generated with create-react-app script) however, neither the CDN CSS get applied nor the aui-react module seems to work.
I get the following npm error when trying to use aui-react installed via npm within the react app:
Module not found: 'classnames' in /....s/node_modules/aui-react/lib
Any ideas? I have seen a few people use AUI in their react components, but I'm not sure how that was done
Many thanks
Community moderators have prevented the ability to post new answers.
Hi Stefan,
about the css issues, according to the aui-react project page
Javascript behaviour and styles are provided by AUI. You should include the relevant AUI files based on the AUI documentation.
which means that you will have to import the proper js/css aui resources in the atlassian-plugin.xml
Regards,
Peter
Hello,
You just need to add the classnames dependency into your package.json dependencies section
"dependencies": { "aui-react": "0.0.5", "classnames": "2.2.3", ... }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.