DeprecationWarning: Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument error on React Native.
I am trying to start my React Native App in offline mode using the command below
npx expo start -c --offline
But the app does'nt start and instead outputs the error below in the console
[DEP_WEBPACK_DEV_SERVER_CONSTRUCTOR] DeprecationWarning: Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument.
Admin
2023-07-26
This error is becasue of the arrangement of the command you are using to start the React Native application, all you need to do is switch the positions of -c and --offline as shown below.
npx expo start --offline -c
Similar Content
- How to Retrieve the Selected Value from a Select Field in ReactJS and NextJS
- Using bootstrap classes and css styles together in next.js
- How to change the background of a selectfields dropdown using css or tailwind
- How to setup a copy to clipboard functionality in either react.js or next.js site
- Next js unhandled runtime error Invalid src prop
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.