bundling failed: Error: Plugin 0 provided an invalid property of “default”

前端 未结 5 1908
别跟我提以往
别跟我提以往 2020-12-16 19:35

I\'m trying to run a react native app on my AVD using this command :

react-native run-android

but getting the following error:



        
5条回答
  •  甜味超标
    2020-12-16 19:48

    Well it may be late , but i will help other as below package.json is working till date 20.aug.2018

    Below package.json most of dependencies like axios, Redux, Native base, react-native-router-flux ..etc used in react native projects, so version i mentioned below compatible to each other. Cheers.

    {
      "name": "Example",
      "version": "0.0.1",
      "private": true,
      "scripts": {
        "start": "node node_modules/react-native/local-cli/cli.js start",
        "test": "jest"
      },
      "resolutions": {
        "*/@babel/cli": "7.0.0-beta.54",
        "*/@babel/core": "7.0.0-beta.54",
        "*/@babel/code-frame": "7.0.0-beta.54"
      },
      "dependencies": {
        "axios": "^0.18.0",
        "eslint": "^5.2.0",
        "native-base": "2.6.1",
        "prop-types": "^15.6.2",
        "react": "16.3.1",
        "react-native": "0.55.4",
        "react-native-router-flux": "^4.0.1",
        "react-native-timeline-listview": "^0.2.3",
        "react-navigation": "^2.11.2",
        "react-redux": "^5.0.7",
        "redux": "^4.0.0",
        "redux-logger": "^3.0.6",
        "redux-thunk": "^2.3.0"
      },
      "devDependencies": {
        "babel-jest": "23.4.2",
        "babel-preset-react-native": "4.0.0",
        "jest": "23.5.0",
        "react-test-renderer": "16.4.1"
      },
      "jest": {
        "preset": "react-native"
      }
    
    }
    

提交回复
热议问题