question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

moment module doesn't work in my nuxt project

See original GitHub issue

I added in the moment module, didn’t even use it yet just added it in to the modules array in nuxt.config.js. I re-ran npm run dev and refreshed the page and all i see is Cannot GET /. I know the moment module caused this because its resolved immediately by removing it.

Whats going wrong here?

Misc info:

  • nuxt: ^1.0.0
  • nuxtjs/moment: ^1.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
robsontenoriocommented, Oct 16, 2018

@pi0 is this should not be automatically added as a module dependency?

Like @nuxtjs/axios and many others we don’t need to include manually “axios” as dependency on package.json

1reaction
shealancommented, Aug 28, 2018

You have to yarn add moment as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt.js with vue-moment - Stack Overflow
js plugins: [ { src: '~/plugins/moment.js', mode: 'client' } ],. Vue-moment works just fine, but the error appears.
Read more >
Node.js Moment Module - GeeksforGeeks
After installing moment module, you can check your moment version in command ... To run this file, you need to run the following...
Read more >
JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >
Nuxt 3 first steps. - ITNEXT
By setting vite to false in your nuxt.config.ts file. Like this. UPDATE: Webpack is not installed by default anymore so you need to...
Read more >
nuxt-moment - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found