Hello guys,
What is difference between require(StringPath) and require(variable)
I have some problem:
For example:
require '../../ui/pages/main.coffee'
it works
But
path = '../../ui/pages/main.coffee'
require path
Doesn’t work, and I get console error
Error: Cannot find module '../../ui/pages/main.coffee'
What’s going on ?