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

Where can I add 'moment.suppressDeprecationWarnings = true'? #133

Open
canvasandcode opened this issue Mar 8, 2020 · 1 comment
Open

Comments

@canvasandcode
Copy link

Hi, I want to add the following to prevent the deprecation warning from showing up.

moment.suppressDeprecationWarnings = true;

But since this is installed via npm, I can't edit the settings. I tried adding it to my app.js file and in my Vue component that uses moment, but neither of these work and still display a warning in chrome dev tools. Is there a specific place I should add the line?

Thanks in advance!

@dhrin1
Copy link

dhrin1 commented Sep 23, 2022

import moment from "moment"
// add this where ever your import moment
moment.suppressDeprecationWarnings = true

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

2 participants