MrHertal / react-admin-json-view

JSON field and input for react-admin.
MIT License
51 stars 13 forks source link

Missing prop-types for mini-create-react-context/dist/esm #2

Closed shunyun-bp closed 3 years ago

shunyun-bp commented 3 years ago

Installed and first use gets this error: Failed to compile

Module not found: Can't resolve 'prop-types' in '/Users/seanonion/code/playground/demosim-admin/ds-admin/node_modules/mini-create-react-context/dist/esm'

shunyun-bp commented 3 years ago

Seem to have solved this by adding react-json-view to the npm install statement. ie:

npm install -s react-json-view react-admin-json-view

MrHertal commented 3 years ago

Hi,

I could not reproduce on an a new project. Which npm version are you using? You should not install react-json-view manually because it is a dependency of react-admin-json-view.