moment module doesn't work in my nuxt project
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:2
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
You have to
yarn add moment
as well.