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
}
]
]
}
}