grunt-verb icon indicating copy to clipboard operation
grunt-verb copied to clipboard

`include("footer") ` causes warning `moment.lang is deprecated`

Open alundiak opened this issue 9 years ago • 0 comments

Here is my content of .verb.md-like file:

{%= include("footer") %}

the part, which gives me this warning:

Running "verb:readme" (verb) task
TypeError: Cannot read property 'replace' of null
Cannot find "username" on the context. TypeError: Cannot read property 'split' of undefined
Deprecation warning: moment.lang is deprecated. Use moment.locale instead.
Arguments: en
Error
    at Function.lang (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/verb/node_modules/moment/moment.js:850:105)
    at Object.exports.date (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/verb/lib/tags/moment.js:22:12)
    at eval (eval at template (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/lodash/dist/lodash.js:6306:22), <anonymous>:12:11)
    at Function.template (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/lodash/dist/lodash.js:6312:16)
    at template (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/verb/node_modules/template/index.js:36:15)
    at Object.module.exports [as template] (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/verb/lib/template.js:27:10)
    at Object.exports.include (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/verb/lib/tags/include.js:59:23)
    at eval (eval at template (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/lodash/dist/lodash.js:6306:22), <anonymous>:8:11)
    at Function.template (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/lodash/dist/lodash.js:6312:16)
    at template (/Users/alund/prj/builders/node_modules/grunt-verb/node_modules/verb/node_modules/template/index.js:36:15)

Here is my config:

verb: {
            readme: {
                files: [
                    {src: ['assets/docs/.verb.md'], dest: 'dist/docs/README_by_verb.md'}
                ]
            }
},

FYI @jonschlinkert

Reproduced with:

  • grunt-gh-pages v.0.2.4.
  • grunt-cli v0.1.13
  • grunt v0.4.5
  • node v4.2.4
  • npm v2.14.12

alundiak avatar Jan 23 '16 20:01 alundiak