Skip to content
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

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

Open
alundiak opened this issue Jan 23, 2016 · 0 comments
Open

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

alundiak opened this issue Jan 23, 2016 · 0 comments

Comments

@alundiak
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant