facebook / prop-types

Runtime type checking for React props and similar objects
MIT License
4.48k stars 356 forks source link

my project can't run prop-types,there's no reaction. #311

Closed linyanyuan closed 4 years ago

linyanyuan commented 4 years ago

father component: image son component: image there's no warning image

ljharb commented 4 years ago

I'm a bit confused; PieChart renders a PieCharts?

linyanyuan commented 4 years ago

I'm a bit confused; PieChart renders a PieCharts?

up there's A.js renders a PieCharts,not PieCharts renders a PieCharts

ljharb commented 4 years ago

ok, but you haven't shown me an example of PieCharts being rendered without a title.

Perhaps you could make a repro repo, so I can see it directly? Screenshots of text are hard to work with.

linyanyuan commented 4 years ago

ok, but you haven't shown me an example of PieCharts being rendered without a title.

Perhaps you could make a repro repo, so I can see it directly? Screenshots of text are hard to work with.

I found the problem, because the CDN I used was introduced externally, so it did not take effect. Thank you