问答详情
源自:3-1 高阶组件实现

Cannot find module 'react-native-stage-0/decorator-support

Cannot find module 'react-native-stage-0/decorator-support' from 'D:\react\app',已经npm install   react-native-stage-0 这个了

提问者:无止境88998 2019-03-03 21:14

个回答

  • 含笑一过
    2019-03-22 09:44:47

    {
      "presets": ["module:metro-react-native-babel-preset"],
       "plugins": [
        ["@babel/plugin-proposal-decorators", { "legacy": true }]   
      ]
    }

  • 慕妹9726099
    2019-03-12 16:27:44

    把node-modules删除,重新cnpm i