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

Problems with integrating into React #247

Closed
hermano opened this issue Sep 9, 2020 · 2 comments
Closed

Problems with integrating into React #247

hermano opened this issue Sep 9, 2020 · 2 comments

Comments

@hermano
Copy link

hermano commented Sep 9, 2020

I tried to integrate @ScaleDS into my React App, but it failed to compile.

Failed to compile
./node_modules/@scaleds/components-react/dist/components.js
Module not found: Can't resolve '@scaleds/components/loader' in '/Users/hermann/git-repos/telekom-test/node_modules/@scaleds/components-react/dist'
This error occurred during the build time and cannot be dismissed.

Unfortunately I am not sure whether the fault is on my side or it's because there is a conflict with the React Version (or something else).

Kind regards

@acstll
Copy link
Collaborator

acstll commented Sep 9, 2020

Do you have @scaleds/components installed as a dependency in your project?

@hermano
Copy link
Author

hermano commented Sep 9, 2020

Yes I had, but following was necessary within scale clone:

yarn clean
yarn build
yarn build:components
yarn bootstrap

and afterwards within my react app repo:

yarn add @scaleds/components

I think the problem was, that the components haven't been build correctly. Looking forward for some testing and adopting now. 👍

@hermano hermano closed this as completed Sep 9, 2020
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

2 participants