Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

TypeError: _getPrototypeOf2 is undefined

$
0
0

I use react-native-web with typescript and when I'm trying to run my project I get this error

TypeError: _getPrototypeOf2 is undefined in react-navigation-stack/lib/module/vendor/views/Stack/StackView.js:1

here my my babel config

test: /\.js$/,
  // Add every directory that needs to be compiled by Babel during the build.

  use: {
    loader: "babel-loader",
    options: {
      //cacheDirectory: true,

      presets: ["module:metro-react-native-babel-preset"],

      plugins: [
        "react-native-web",
        "transform-react-remove-prop-types",
        ["@babel/plugin-proposal-decorators", { legacy: true }],
        [
          "@babel/plugin-transform-runtime",
          {
            helpers: true,
            regenerator: false
          }
        ]
      ]
    }
  }

Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>