Your dev tools should provide info about the file and line number where the code errors, or does it not?
My guess is this is a string - stringArray thing and the “d” is the “d” from “discourse.some-function.object”
Can you post that bit of code here or better yet post a link to your GitHub repo?