laranuxt icon indicating copy to clipboard operation
laranuxt copied to clipboard

Error when running yarn dev

Open justinjacobsumaya8 opened this issue 4 years ago • 5 comments

I've followed the steps to install and run "yarn dev", but shows this error below. Please help:

ERROR ERROR in client/components/header/HeaderUser.vue:9:7 20:31:13 TS2451: Cannot redeclare block-scoped variable 'ctx'. 7 | 8 |

9 | const ctx = useContext() | ^^^ 10 | const user = computed(() => ctx.$auth.user) 11 | console.log(ctx.$auth) 12 |

ERROR in client/components/header/ModalLogin.vue:75:7 TS2451: Cannot redeclare block-scoped variable 'ctx'. 73 | const emit = defineEmits(['off']) 74 |

75 | const ctx = useContext() | ^^^ 76 | const email = ref('') 77 | const loading = reactive({ 78 | attempt: false,

justinjacobsumaya8 avatar Oct 23 '21 12:10 justinjacobsumaya8

@justinjacobsumaya8 this is going through a massive overhaul of new features, adding auth, dark mode, etc.

By Monday I should have this stuff buttoned up and the readme updated with a ton of new stuff. apologies for the mess until then! Appreciate the feedback!

acidjazz avatar Oct 23 '21 22:10 acidjazz

Ah okay please let me know. I'd really love to use your boilerplate. More power to you!

justinjacobsumaya8 avatar Oct 24 '21 08:10 justinjacobsumaya8

The same problem.

arasjuska avatar Oct 30 '21 14:10 arasjuska

Sorry guys - right in the middle of supporting nuxt3 and nuxt-bridge in the stack, if you want please grab a version from the 16th of september or older and that will match the readme - once the nuxt3/bridge support is done i'll update the readme and close this issue

acidjazz avatar Oct 30 '21 21:10 acidjazz

Visiting this as its a bit stale @arasjuska @justinjacobsumaya8 let me know if things are 👍 for v2 and v3

acidjazz avatar Aug 07 '22 06:08 acidjazz