Issues trying to debug children

#1

Hey guys,

Was trying to look at the children of a component but whenever I try to console.log the children, there are errors being generated on the console. This does not seem to happen with react-native, only happens with projects initiated by Expo.

Code snippet:

import React from 'react';
import { Text, View } from 'react-native';

function Testing(props) {
	console.log(props);

	return null;
}

export default class App extends React.Component {
	render() {
		return (
			<View>
				<Testing>
					<Text>Some text here</Text>
				</Testing>
			</View>
		);
	}
}

Errors:

PayloadTooLargeError: request entity too large
    at readStream (/usr/local/lib/node_modules/expo-cli/node_modules/raw-body/index.js:155:17)
    at getRawBody (/usr/local/lib/node_modules/expo-cli/node_modules/raw-body/index.js:108:12)
    at read (/usr/local/lib/node_modules/expo-cli/node_modules/body-parser/lib/read.js:77:3)
    at jsonParser (/usr/local/lib/node_modules/expo-cli/node_modules/body-parser/lib/types/json.js:135:5)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/expo-cli/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/expo-cli/node_modules/express/lib/router/index.js:317:13)
    at /usr/local/lib/node_modules/expo-cli/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/local/lib/node_modules/expo-cli/node_modules/express/lib/router/index.js:335:12)
    at next (/usr/local/lib/node_modules/expo-cli/node_modules/express/lib/router/index.js:275:10)
    at expressInit (/usr/local/lib/node_modules/expo-cli/node_modules/express/lib/middleware/init.js:40:5)

Any ideas if I am doing something wrong here?

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.