completely unable to debug with expo 32

hi!
I’ve just create the template app with expo init version 2.14.0 and I am the chrome dev tools seem completely unable to find the point of execution.
If fails on the Android emulator and on my Android physical phone.

The call stack is fine, but the source line shown is completely wrong :pensive:

The Expo App is 2.10.6

Expo CLI 2.14.0 environment info:
System:
OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish)
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 10.6.0 - ~/.nvm/versions/node/v10.6.0/bin/node
Yarn: 1.9.4 - /usr/bin/yarn
npm: 6.1.0 - ~/.nvm/versions/node/v10.6.0/bin/npm
npmPackages:
expo: ^32.0.0 => 32.0.6
react: 16.5.0 => 16.5.0
react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1
npmGlobalPackages:
expo-cli: 2.14.0

Basically this is all my code (and it is failing in both the async and no async methods):

import React from ‘react’
import { StyleSheet, Text, View } from ‘react-native’

export default class App extends React.Component {
  async componentDidMount() {
    debugger
    const response = await fetch('https://httpbin.org/get')
    console.log(response.status)
  }

  // componentDidMount() {
  //   debugger
  //   console.log('--before--')
  //   fetch('https://httpbin.org/get').then(response => {
  //     console.log(response.status)
  //   })
  // }

  render() {
    return (
      <View style={styles.container}>
        <Text>Open up App.js to start working on your app!</Text>
      </View>
    )
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
})

Any help is going to be more than welcome!
Thanks!!

Iván

Update!

After installing node v11.13.0 things are improving, breakpoint is on the proper line, but, if I add some changes to the file I am debugging the bundler must be stooped and started again

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