Как исправить ошибку "Модуль не найден" (Реагировать) - PullRequest
0 голосов
/ 09 мая 2020

У меня проблема с запуском приложения flask - когда я посещаю http://localhost: 5000 , страница открыта, но ничего не отображает. Каждый раз, когда я запускаю npm run watch, я получаю эту ошибку

ERROR in ./app/frontend/components/withRoot.jsx
Module not found: Error: Can't resolve 'react-jss/lib/JssProvider' in '/Users/pcowe/Desktop/sytora/flaskapp/app/frontend/components'
 @ ./app/frontend/components/withRoot.jsx 13:19-55
 @ ./app/frontend/pages/landing.jsx
 @ ./app/frontend/app.jsx
 @ multi ./app/frontend/app.jsx

Перед этим я запускаю npm install и получаю следующие предупреждения, связаны ли они случайно с этой ошибкой?

npm WARN jss-compose@4.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-expand@4.0.1 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-extend@5.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-preset-default@3.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-camel-case@5.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-default-unit@7.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-global@2.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-nested@5.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-props-sort@5.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jss-vendor-prefixer@6.0.0 requires a peer of jss@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-i18next@8.4.0 requires a peer of prop-types@15.6.2 but none is installed. You must install peer dependencies yourself.

Как исправить эту проблему? Я использую MacOS 10.14, и приложение, которое я запускаю, было разветвлено из https://github.com/owecodes/sytora

Любая помощь приветствуется

...