You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.
Hello, im getting this error after i separated my tasks from gruntfile.js to a folder _tasks, ATM im using grunt-load-configs and grunt-load-tasks on my project.
Since i made this change, mailgun stopped working.
// _tasks/mailgun.js
module.exports = {
mailer: {
options: {
key: '<%= cfg.email.key %>',
sender: '<%= cfg.email.sender %>',
recipient: '<%= cfg.email.recipient %>',
subject: '<%= cfg.email.subject %>'
},
src: ['html/email.html)]
// it send the email test but the task never stop running, i have to cancel it with ctrl+c.
src: ['<%= cfg.dist %>'+grunt.option('template')]
// cmd line : grunt send --template=email.html, i use this method to send test email.
and i get the error below.
}
};
Loading _workflow/_tasks/mailgun.js...Loading "Gruntfile.js" tasks...ERROR
>> ReferenceError: grunt is not defined
>> at Object.<anonymous> (C:\sites\bymailer\_workflow\_tasks\mailgun.js:9:29)
>> at Module._compile (module.js:460:26)
>> at Object.Module._extensions..js (module.js:478:10)
>> at Module.load (module.js:355:32)
>> at Function.Module._load (module.js:310:12)
>> at Module.require (module.js:365:17)
>> at require (module.js:384:17)
>> at C:\sites\bymailer\node_modules\load-grunt-configs\lib\load-grunt-configs.js:72:30
>> at Array.forEach (native)
>> at module.exports (C:\sites\bymailer\node_modules\
load-grunt-configs\lib\load-grunt-configs.js:53:11)
Running tasks: send
>> [no-notifications] title: BY_Mailer
>> [no-notifications] message: Task "send" not found.
Warning: Task "send" not found. Use --force to continue.
If i change my module.exports like this to correct the missing grunt call:
Hello, im getting this error after i separated my tasks from gruntfile.js to a folder _tasks, ATM im using grunt-load-configs and grunt-load-tasks on my project.
Since i made this change, mailgun stopped working.
If i change my module.exports like this to correct the missing grunt call:
i get this error:
My taks worked fine on Gruntfile.js like this:
I must be missing something here, can you help me?
Best regards.
The text was updated successfully, but these errors were encountered: