Skip to content

Changes main path in packages.json#5

Open
kareemsalah227 wants to merge 1 commit into
vishpat:masterfrom
kareemsalah227:master
Open

Changes main path in packages.json#5
kareemsalah227 wants to merge 1 commit into
vishpat:masterfrom
kareemsalah227:master

Conversation

@kareemsalah227

@kareemsalah227 kareemsalah227 commented Sep 12, 2020

Copy link
Copy Markdown

Problem:

When fetching the package using npm install in a create-react-app, user will get a compilation error that ra-data-springboot-data can not be resolved.

The problem is because the main entry defined in packages.json is pointing to a non-existing path lib/index.js.

Solution:

Either create the wrong path and copy index.js under the created path lib, or just change the main entry to src/index.js, I did the latter.

Reference:

#4

@vishpat I'll mention you since I can't add you as a reviewer.

@jbournonville

Copy link
Copy Markdown

@vishpat did you have the possibility to merge this PR ?

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

Successfully merging this pull request may close these issues.

2 participants