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: docs/debugging/troubleshooting.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,17 @@
4
4
5
5
If on server start you get Cannot read properties of undefined (reading 'id') its highly possible that you put something what was tried to be loaded by autoload and you break recommended structure
6
6
7
-
8
7
For instance if you put smth into main/database/common/smth-common.ts what does not have decorator related to DB.
9
-
Put your services and helpers outside of structure ie. main/helpers
8
+
Put your services and helpers outside of structure ie. main/helpers
9
+
10
+
## console log source of rpgjs
11
+
12
+
In command line we can see some error on server start.
13
+

14
+
15
+
In this example we have Cannot read properties of undefined (reading 'id'), and stack trace says its in [@rpgjs]/server/src/Scenes/Map.ts:226:38
16
+
17
+
We cannot leave console.log in Map.ts, bacouse we would have to rebuild library. But we can do this in complied js in same place
0 commit comments