PaulAsjes-zz / BuildingBots

Source code for the book Building Bots
1 stars 2 forks source link

Require Bot.js #3

Closed aisflat439 closed 7 years ago

aisflat439 commented 7 years ago

I run node v7.4.0 on my machine and find that the code const Bot = require('./Bot'); fails, but the code const Bot = require('./bot'); works. I'm too new to node to know if this is related to a change but this also may be helpful in the errata section.

PaulAsjes-zz commented 7 years ago

require is case sensitive, so you probably had a file named bot.js rather than Bot.js which is what caused the import to fail.