@s_katala

Как исправить ошибку React?

<code>B:\OSPanel\domains\domain.dev\frontend\node_modules\react-qiniu\index.js:16
        onDrop: React.PropTypes.func.isRequired,
                                ^

TypeError: Cannot read property 'func' of undefined
    at Object.<anonymous> (B:\OSPanel\domains\domain.dev\frontend\node_modules\react-qiniu\index.js:16:33)
    at Module._compile (module.js:635:30)
    at Module._extensions..js (module.js:646:10)
    at Object.require.extensions.(anonymous function) [as .js] (B:\OSPanel\domains\domain.dev\frontend\node_modules\babel-register\lib\node.js:152:7)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (B:/OSPanel/domains/domain.dev/frontend/src/components/qiniu-upload-image/index.js:3:1)
    at Module._compile (module.js:635:30)
    at loader (B:\OSPanel\domains\domain.dev\frontend\node_modules\babel-register\lib\node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (B:\OSPanel\domains\domain.dev\frontend\node_modules\babel-register\lib\node.js:154:7)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)</code>
  • Вопрос задан
  • 101 просмотр
Решения вопроса 1
@site_trouble
Либо поставить версию реакта ниже 16, либо написать автору библиотеки и ждать фикса.
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
Krasnodar_etc
@Krasnodar_etc
avito front
Код в студию
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы