-
-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require and Coffeescript #3
Comments
I'm using dotenv with CoffeeScript and getting it to compile correctly. dotenv = require('dotenv')()
dotenv.load() Compiled: var dotenv;
dotenv = require('dotenv')();
dotenv.load(); |
@karellm can you paste your coffeescript version in here:
I'm at 1.6.3 |
Hi @karellm, I'm closing this having tested on my own side. If you continue to run into the error, just post your coffee script version and I'll re-open. Hope it got working for you! |
Hi @scottmotte, Sorry for the late answer and trouble. I may have made a mistake somewhere because it is compiling just fine with coffeescript 1.6.3. Thanks for the great support! |
require('dotenv')()
compiles torequire('dotenv')
in coffeescript, causing the following error:A quick workaround is to wrap it using backtick
to use raw javascript. Couldn't you just remove the need for the trailing
()` ?The text was updated successfully, but these errors were encountered: