-
Notifications
You must be signed in to change notification settings - Fork 8
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
ERROR in ./.nuxt/date-fns.js #17
Comments
@desiboli Try re-install dependencies:
If it doesn't work, could you provide a repository? |
Getting the same error on a fresh install of this package on a fresh nuxt project. |
@Diglio Please provide a repository and step by step to reproduce |
It works for me.
// pages/index.vue
<template>
<div>
{{ $dateFns.format(new Date()) }}
</div>
</template> // package.json
{
"private": true,
"scripts": {
"dev": "nuxt"
},
"dependencies": {
"nuxt": "^2.10.0"
},
"devDependencies": {
"@nuxtjs/date-fns": "^1.0.0"
}
} // nuxt.config.js
export default {
buildModules: [
'@nuxtjs/date-fns'
],
dateFns: {
format: 'yyyy-MM-dd'
}
}
|
Ok I was trying to reproduce this issue in a fresh Nuxtjs project using Nuxt cli (npx). This is the issue nuxt/nuxt#6500 You can reproduce this issue in this repo: https://github.com/desiboli/nuxt-error I however could not reproduce the date-fns issue in a Universal nuxt app. That was working fine! NOTE: that I'm using NPM not Yarn! In my current project I still couldn't fix the error, I did the following steps:
|
@desiboli It's a problem with nuxt v2.10.0 😞 |
Installing date-fns solves the issue. The generated files from the build depend on date-fns. |
@desiboli update nuxt to v2.10.1 Does this still occur? |
@ricardogobbosouza yes unfortunately this still occurs! So I did the following before trying out the "npm run build" again where the issue occurs.
|
@desiboli I still can't reproduce this issue |
If the problem persists, please reopen |
still an issue on a fresh install |
@desiboli , @pancake-boy |
Probably you have installed As said @6ones |
Hi! after upgrading to version 1.0.0 I get this error in Nuxt build.
Nuxt version: 2.10.0
The text was updated successfully, but these errors were encountered: