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

Casbin.js 0.1.0 with react-scripts 4.0.2 conflict #28

Closed
kavindapelpola opened this issue Feb 15, 2021 · 9 comments · Fixed by #40
Closed

Casbin.js 0.1.0 with react-scripts 4.0.2 conflict #28

kavindapelpola opened this issue Feb 15, 2021 · 9 comments · Fixed by #40
Assignees
Labels
bug Something isn't working

Comments

@kavindapelpola
Copy link

Hi, when I add Casbin.js to my react project I get the error below. To use Casbin.js I need to downgrade Casbin.js to a version that is not tied to babel-loader 8.2.2, but this cannot be the long term solution. Can you advise how to proceed?

The react-scripts package provided by Create React App requires a dependency:

"babel-loader": "8.1.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-loader was detected higher up in the tree:

/Users/kavindapelpola/src/atos-ams/packages/ams/ui/node_modules/babel-loader (version: 8.2.2)

@hsluoyz
Copy link
Member

hsluoyz commented Feb 15, 2021

@17bit

@hsluoyz hsluoyz self-assigned this Feb 15, 2021
@hsluoyz hsluoyz added the bug Something isn't working label Feb 15, 2021
@17bit
Copy link
Contributor

17bit commented Feb 15, 2021

Hi, when I add Casbin.js to my react project I get the error below. To use Casbin.js I need to downgrade Casbin.js to a version that is not tied to babel-loader 8.2.2, but this cannot be the long term solution. Can you advise how to proceed?

The react-scripts package provided by Create React App requires a dependency:

"babel-loader": "8.1.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-loader was detected higher up in the tree:

/Users/kavindapelpola/src/atos-ams/packages/ams/ui/node_modules/babel-loader (version: 8.2.2)

Hi. Try to use yarn add babel-loader@8.1.0

@hsluoyz
Copy link
Member

hsluoyz commented Mar 11, 2021

@Zxilly can you help fix this?

@hsluoyz
Copy link
Member

hsluoyz commented Mar 11, 2021

@Zxilly plz make a new release.

@Zxilly
Copy link
Contributor

Zxilly commented Mar 12, 2021

@hsluoyz
Copy link
Member

hsluoyz commented Mar 12, 2021

@Zxilly and GitHub releases, actually I found this repo doesn't have even the previous GitHub releases. @Zxilly can you add them too?

@Zxilly
Copy link
Contributor

Zxilly commented Mar 12, 2021

@hsluoyz I can add v0.1.2 and v0.1.1, but i didn't know which commit the previous releases should pinned to.

@Zxilly
Copy link
Contributor

Zxilly commented Mar 12, 2021

@hsluoyz I added all i can find, but I really didn't which commit ref to v0.0.1

@hsluoyz
Copy link
Member

hsluoyz commented Mar 12, 2021

@Zxilly I have added them: https://github.com/casbin/casbin.js/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants