ra-data-springboot-rest icon indicating copy to clipboard operation
ra-data-springboot-rest copied to clipboard

There is a error path in package.json

Open kevinywb opened this issue 4 years ago • 2 comments

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

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

kevinywb avatar Mar 30 '20 09:03 kevinywb

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

https://github.com/vishpat/ra-data-springboot-rest/pull/5

kareemsalah227 avatar Sep 12 '20 13:09 kareemsalah227

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.

jbournonville avatar Feb 03 '21 10:02 jbournonville