You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,27 @@ The React Native CLI will do everything just as without a template and afterward
45
45
46
46
### Does debugging work too?
47
47
48
-
Yes it does. Some users reported that they got an error about relative paths when they tried to debug inside Visual Studio Code. In this case check out the [fix by Mo Mac](https://medium.com/@nocnoc/great-work-f0b5ef365ca6).
48
+
Yes it does, but you need to enable the `sourceMap` option in the `tsconfig.json`.
49
+
50
+
Make sure it looks something like this:
51
+
```json
52
+
{
53
+
"compilerOptions": {
54
+
"allowSyntheticDefaultImports": true,
55
+
"esModuleInterop": true,
56
+
"jsx": "react",
57
+
"module": "es6",
58
+
"moduleResolution": "node",
59
+
"noEmit": true,
60
+
"noImplicitAny": true,
61
+
"target": "es6",
62
+
"sourceMap": true
63
+
},
64
+
"exclude": ["node_modules"]
65
+
}
66
+
```
67
+
68
+
This is not enabled by default as it is unknown if it has any negative effects on the transpilation time. For more information make sure to check out the [post by Nicolas Hémonic](https://medium.com/@NicolasHemonic/hi-mo-mac-d18286202602).
0 commit comments