-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: validateOptions is not a function
error
#906
Comments
Hey @zahrat! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
Can you share the complete error trace? There should be more error logs coming after Can you share the |
index.web.js file: import RootStack from "./src/Route/LoginNavigation";
import { Provider } from "react-redux";
import { createStore } from "redux";
import reducers from "./src/Reducers";
import { I18nManager } from "react-native";
import { gestureHandlerRootHOC } from "react-native-gesture-handler";
I18nManager.allowRTL(false);
const appName = "testapp";
const store = createStore(reducers);
const AppContainer = createAppContainer(RootStack);
const MyContainer = () => (
<Provider store={store}>
<AppContainer uriPrefix={"testapp://"} />
</Provider>
);
AppRegistry.registerComponent(appName, () => MyContainer);
AppRegistry.runApplication(appName, {
// Mount the react-native app in the "app-root" div of index.html
rootTag: document.getElementById("app-root"),
}); and the complete error is :
|
@zahrat The problem is that for some reason this Line 30 in f3538d0
Could you try these things?
|
Oh also try deleting |
did anyone find solution for it, I am also facing same issue |
has helped me (surprise). |
I had the same problem but I solved it by removing the |
please need to change the code babel-loader, the updated version of schema-utils break (2020) here the code in the code to patch correctly babel-loader change: to refactor. |
@nicolo-ribaudo yep, it is bug with package manager, removing |
💻
How are you using Babel?
babel-loader (webpack)
Input code
Configuration file name
No response
Configuration
webpack.config.js file content:
Current and expected behavior
I am using babel-loader with webpack in react-native . Now when I want to run the project with
npm run web
I got the below error:Babel-loader configuration is in webpack.config.js which I put it in "Input code" section.
Environment
System:
OS: Windows 10 10.0.10586
Binaries:
Node: 14.16.1 - C:\Program Files (x86)\nodejs\node.EXE
Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 7.11.2 - C:\Program Files (x86)\nodejs\npm.CMD
npmPackages:
@babel/core: ^7.7.2 => 7.14.0
@babel/runtime: ^7.7.2 => 7.14.0
babel-jest: ^24.9.0 => 24.9.0
babel-loader: ^8.2.2 => 8.2.2
babel-plugin-react-native-web: ^0.16.2 => 0.16.2
eslint: ^6.6.0 => 6.8.0
jest: ^24.9.0 => 24.9.0
metro-react-native-babel-preset: ^0.57.0 => 0.57.0
react-native: ^0.64.1 => 0.64.1
webpack: ^5.36.2 => 5.36.2
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: