Closed ApolloZhu closed 5 years ago
gaData[i]
seems to beundefined
in the following line of code:I'm using Hexo 3.8.0, NexT 6.7.0, but this bug has been around for a quite a lot of other versions. As it doesn't impact the actual deployment, take your time to investigate, and happy new year.
Full error message Should you need any other information to help you debug this problem, please let me know.
when I push the button ctrl+s
(save file) one more times, my server would print such messages as @ApolloZhu said, I just change several places and it works(I dont know js, but I find some useful tips), the changes as below(I'm not sure whether it will cause some underlying problems, it just worked for me)
collector.js
add 5 lines code
cache.js
add 1 line code
@BrianYi Thanks for suggestion. As I corrected collector.js, please update npm version.
gaData[i]
seems to beundefined
in the following line of code:https://github.com/tea3/hexo-related-popular-posts/blob/d9e7687fb6f34a8004cec099f6eb292ff8cae9bf/lib/collector.js#L205
I'm using Hexo 3.8.0, NexT 6.7.0, but this bug has been around for a quite a lot of other versions. As it doesn't impact the actual deployment, take your time to investigate, and happy new year.
Full error message
``` Unhandled rejection TypeError: Cannot read property 'path' of undefined at Promise (node_modules/hexo-related-popular-posts/lib/collector.js:205:31) at new Promise (Should you need any other information to help you debug this problem, please let me know.