ERROR in ./~/react-tap-event-plugin/src/injectTapEventPlugin.js

后端 未结 5 1663
别跟我提以往
别跟我提以往 2021-01-17 10:01

React noob here. Trying to clone and run https://github.com/strangebnb/react-airbnb

I clone. run npm install. Then webpack but I get

ERROR in ./~/rea         


        
5条回答
  •  无人共我
    2021-01-17 10:47

    UPDATE: As of React 16 the react-tap-event-plugin is deprecated and no longer required https://www.npmjs.com/package/react-tap-event-plugin

    Old solution redundant as of React 16 Updating the react tap event plugin to over 2.0.1 will fix your issue if you're using React 15.4.0.

    A new React version has been released (https://github.com/facebook/react/blob/master/CHANGELOG.md), and I read recently that there have been big changes where react-dom still secretly lived on in the react package but is now being removed. If you read 15.4.0, the first point: 'React package and browser build no longer "secretly" includes React DOM. (@sebmarkbage in #7164 and #7168)'

    Also reading the tap event plugins npm docs: Only the latest tap event plugin (v2.0.1 currently) supports React 15.4+. https://www.npmjs.com/package/react-tap-event-plugin

    Check the version of React and react-tap-event-plugin. npm list --depth=0

提交回复
热议问题