Closed blowsie closed 5 years ago
Exact same issue here. Any solution?
Nope, not as of yet, I asked in the nuxt discord and the majority of people just said to use https://date-fns.org/. Not really the answer i was looking for but its an option at least.
What I did for the time beeing is added webpack to package.json via npm install webpack --save
Using the latest nuxt, you can simply add this module to the buildModules
(instead of modules
) in nuxt.config.js
. I'll update README as well :)
I am unable to use this module in production with
nuxt-start
becuase the module usesmoment-locales-webpack-plugin
.moment-locales-webpack-plugin
requires webpack, which is a build time dependency rather than a runtime dependency.As a result, when I use
npm install --production
&nuxt-start
this module fails sincewebpack
is not available.How can this issue be addressed?
Is the dependency this way by design? Perhaps using this in production hadn't been considered?