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

Uncaught ReferenceError: moment is not defined #3

Closed
tangsiwen opened this issue Aug 22, 2017 · 7 comments
Closed

Uncaught ReferenceError: moment is not defined #3

tangsiwen opened this issue Aug 22, 2017 · 7 comments

Comments

@tangsiwen
Copy link

您好,请问我使用该组件一直报这个错,我已经引入了moment包还是不行

@tangsiwen
Copy link
Author

已经解决了

@tpinne
Copy link

tpinne commented Sep 1, 2017

How did you solve it?

@hustcc
Copy link
Owner

hustcc commented Sep 1, 2017

import moment with script tab in HTML.

@tpinne
Copy link

tpinne commented Sep 1, 2017

Sadly that's not an option to go with here :(

@hustcc
Copy link
Owner

hustcc commented Sep 1, 2017

  1. import moment with script tag.
  2. npm install moment.

gantt needs it.

@tpinne
Copy link

tpinne commented Sep 1, 2017

I know that gantt needs moment and we have it already included in our project. But importing it via a script tag is not an option. Not moment in general, which I haven't been clearly about in my answer. Sorry for the confusion.

@hustcc
Copy link
Owner

hustcc commented Nov 22, 2017

You can submit your case on frappe/gantt#31 .

Or

  • import moment.js in your html file with script tag.
  • add moment.js in webpack as global.

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

3 participants