-
Notifications
You must be signed in to change notification settings - Fork 944
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
[RN new architecture] Invalid non-string URL" for scriptURL - Falling back to localhost #1486
Comments
same issue |
@maksim-romanov did you find any solutions? |
I got the same issue running this recipe but with npm instead of bun Using Ignite 9.7.1 After installing I ran: This then gives the following failure:
|
I have noticed that in node_modules/reactotron-react-native/src/reactotron-react-native.ts there is this snippet.
When you inspect it, you can see that NativeModules is an empty object Not sure I have the right file but the React Native code that is referenced was last changed 6 months ago and it looks to use new architecture. I'm going to try with turning new architecture off and see how far I get. |
is there any update about this issue? |
i solved it very quickly. i was installing pods with i installed pods without new arch and problem solved. so, just do |
Is there any solutions with the new arch enabled? |
I tried using this react native url polyfill to see if that worked but it didn't (or I didn't implement it correctly). Moving to the old architecture worked though. Not a long term possibility though. |
Hey folks, looks like the interface we were using here no longer exists in new arch. I was hoping this was a simple fix I could do while we were at Chain React Conf. Looks like it will be more involved. Stay tuned. |
any update for the new arch? |
@mark and I went over this last week. I got him up to speed with my research on the topic. Unfortunately, I haven't had a spare moment to work on it. We feel the same pain as we prepare our applications for the new arch. |
lol Wrong Mark, @morganick :P Thanks for the trace @adamsinnott. We're going to have to figure out where this variable lives in the new architecture. I'm on a deadline crunch right now but can probably look into this after. For now, i've silenced the warning with: if (__DEV__) {
LogBox.ignoreLogs([
'getHost: "Invalid non-string URL" for scriptURL - Falling back to localhost',
])
} |
Workaround for ignoring warning. const _ = console.warn;
console.warn = () => {};
LogBox.ignoreLogs(['Invalid non-string URL']);
const Reactotron = require('reactotron-react-native').default;
console.warn = _; |
Describe the bug
I am getting this error in development.
getHost: "Invalid non-string URL" for scriptURL - Falling back to localhost
.Steps to reproduce. Create RN app. I am in ios with new architecture enabled. This is the reactoronConfig.ts file import Reactotron, {openInEditor, ReactotronReactNative} from 'reactotron-react-native';
import mmkvPlugin from 'reactotron-react-native-mmkv';
import {reactotronRedux} from 'reactotron-redux';
import {storage} from './store';
import config from '../app.json';
Reactotron.configure({
name: config.name,
})
.useReactNative({
networking: {
ignoreUrls: /symbolicate/,
},
editor: false,
errors: {veto: stackFrame => false},
overlay: false,
})
.use(openInEditor())
.use(mmkvPlugin({storage}))
.use(reactotronRedux())
.connect();
export default Reactotron;
and this is the index.js /**
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import 'react-native-gesture-handler';
if (DEV) {
import('@/reactotron.config');
}
AppRegistry.registerComponent(appName, () => App);
Reactotron version
5.1.7
The text was updated successfully, but these errors were encountered: