guess-js/guess

TypeError: Cannot read property 'userRequest' of null

zaratan opened this issue · 5 comments

Building this with GatsbyJS but this is probably not related to it. At build time it got stuck with this error. Apparently, my module can be null.

Comes from this line:

fileChunk[block.dependencies[0].module.userRequest] = name;

Is there a weird thing in my config/page generation?

Thanks for giving Guess.js a try! @denispasin do you have a demo where I can reproduce the problem?

@denispasin dbee867 should have fixed this. Would you give it a try with 0.3.8?

Closing. Feel free to comment/open a new issue of the problem is not resolved.

@mgechev Finally had the time to test this morning. That seems to fix it! Thanks a lot! (I had to rollback a "few" commits 'cause I found a way around it in the mean time)

🚀