React-admin: ComponentPropType not exported from 'ra-core'

Created on 11 Dec 2019  路  3Comments  路  Source: marmelab/react-admin

I upgraded from 2.9.8 to 3.03 and when I ran the code, I got the following error:
./node_modules/ra-ui-materialui/esm/layout/Layout.js
Attempted import error: 'ComponentPropType' is not exported from 'ra-core'.

Apparently Layout.js is trying to import something from ra-core, but it no longer exists there.

needs more info

Most helpful comment

I had a similar issue and the resolution was to ensure all RA packages were upgraded too. In my case, it was ra-data-json-server that I forgot to upgrade

All 3 comments

I can't reproduce the problem. Would you mind joining a CodeSandbox demonstrating the issue?

Also, could you check your yarn.lock to see if you don't have a duplicated dependency on ra-core (e.g. by not upgrading a secondary react-admin package like ra-language-english)?

OMG facepalm idk why i didnt think of deleting the lock file. i just ended up sticking with 2.9.8 and figuring out how to write the old style dataproviders. im not sure whether my boss will want to stick with this version or upgrade :/ but thanks for the idea.

I had a similar issue and the resolution was to ensure all RA packages were upgraded too. In my case, it was ra-data-json-server that I forgot to upgrade

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kikill95 picture kikill95  路  3Comments

Dragomir-Ivanov picture Dragomir-Ivanov  路  3Comments

samanmohamadi picture samanmohamadi  路  3Comments

phacks picture phacks  路  3Comments

aserrallerios picture aserrallerios  路  3Comments