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

"TypeError: Cannot read property '$moment' of undefined" #120

Open
mmichealjroberts opened this issue Jul 4, 2019 · 0 comments
Open

"TypeError: Cannot read property '$moment' of undefined" #120

mmichealjroberts opened this issue Jul 4, 2019 · 0 comments

Comments

@mmichealjroberts
Copy link

FYI - Every time I go to use this plugin inside the script tag of any component in any project it's never defined, or I run into some sort of trouble. I think the docs could better explain using it in the non-filter way, i.e., just within the script tag of the component.

But if anyone reads this, I'd recommend just using vanilla moment.js for date manipulations on the component level. This SO answer will point you in the right direction:

https://stackoverflow.com/questions/45609012/how-to-use-moment-library-inside-a-vue-js-component/45610094

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