Skip to content
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

Use with React (create-react-app) #23

Open
severcolhon opened this issue Dec 11, 2019 · 4 comments
Open

Use with React (create-react-app) #23

severcolhon opened this issue Dec 11, 2019 · 4 comments

Comments

@severcolhon
Copy link

I am trying to integrate it with a react app and as I want to import certain elements, I get a module dependency error.

Any advice on using it with React will be more than userful.

Thanks

@theproj3ct
Copy link

I am also planning to use with React, i will let you know if i solve these issues myself (not a contributer yet)

@maxdbarton97
Copy link

maxdbarton97 commented Jan 28, 2021

In index.js:

import "@audi/audi-ui/dist/audi-ui.min.css";
import "dom4";
import "core-js";

Inside wherever you are using an aui component:

import aui from "@audi/audi-ui";
...
useEffect(() => {
    aui.upgradeAllElements();
}, []);

@Mrkezii
Copy link

Mrkezii commented Feb 4, 2021

@maxdbarton97 were you able to install the package in a react project to start with. I tried running yarn add @audi/audi-ui and i get the following error An unexpected error occurred: "https://npm.pkg.github.com/@audi%2faudi-ui: npm package \"audi-ui\" does not exist under owner \"audi\"".

@maxdbarton97
Copy link

maxdbarton97 commented Mar 8, 2021

@maxdbarton97 were you able to install the package in a react project to start with. I tried running yarn add @audi/audi-ui and i get the following error An unexpected error occurred: "https://npm.pkg.github.com/@audi%2faudi-ui: npm package \"audi-ui\" does not exist under owner \"audi\"".

I use npm and that worked for me 😄 I don't have any experience with yarn, so I won't be any help, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@severcolhon @Mrkezii @maxdbarton97 @theproj3ct and others