tanımlı değil. 'PropTypes' is not defined. (no-undef)
aşağıdaki linting hatası alıyorum. İşte 'Proptypes' Ben yeni yardımıyla tepki kuruyorum
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Routers extends Component {
static propTypes = {
history: PropTypes.object.isRequired
};
...
Ben react/prop-types kural ile oynamak çalıştı, ama boşuna.
Burada bir şey göremiyorum, webpack kullanıyor musunuz? Yapılandırmayı paylaşabilir misiniz? – Purgatory
@Purgatory [create-react-app] (https://github.com/facebookincubator/create-react-app) webpack kullanıyor olduğuna inanıyorum. Ama ben webpack'i ayrı kullanmıyorum. – Lars
"PropTypes" tanımlı değil "veya" propTypes "tanımlı değil" – Purgatory