Skip to content
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 when running yarn dev #38

Open
justinjacobsumaya8 opened this issue Oct 23, 2021 · 5 comments
Open

Error when running yarn dev #38

justinjacobsumaya8 opened this issue Oct 23, 2021 · 5 comments

Comments

@justinjacobsumaya8
Copy link

justinjacobsumaya8 commented Oct 23, 2021

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 | <script lang="ts" setup>

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

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,

@acidjazz
Copy link
Member

acidjazz commented Oct 23, 2021

@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!

@justinjacobsumaya8
Copy link
Author

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

@arasjuska
Copy link

The same problem.

@acidjazz
Copy link
Member

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
Copy link
Member

acidjazz commented Aug 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants