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

There is a error path in package.json #4

Open
kevinywb opened this issue Mar 30, 2020 · 2 comments
Open

There is a error path in package.json #4

kevinywb opened this issue Mar 30, 2020 · 2 comments

Comments

@kevinywb
Copy link

"main": "lib/index.js",

There is not 'lib' in current src path.
pls fix it, thks.

@kareemsalah227
Copy link

@kevinywb I ran into the same problem.
I created a PR to fix it.

#5

@jbournonville
Copy link

As a temporary fix you can use patch-package:

  1. add patch-package dependencies to your project :
    yarn add patch-package postinstall-postinstall -D

  2. add postinstall script to your package.json

"scripts": {
    ...
    "postinstall": "patch-package"
  },
  1. modify the ra-data-springboot-rest package.json in node_modules folder :
{
    ...
    "main": "src/index.js",
    ...
}
  1. run npx patch-package ra-data-springboot-rest --exclude command

And you should be good to go.

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

3 participants