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

Is there compatability with Vue 3? I’m having issues migrating #41

Closed
Rhyspacker opened this issue Jan 1, 2021 · 3 comments
Closed
Labels
question Further information is requested

Comments

@Rhyspacker
Copy link

Hi there, I decided to update my personal website which uses Vue JS and Prismic. All was working smoothly until I migrated my Vue 2 > Vue 3 via the Vue CLI.

I get this js error in the console (full screenshot below) "Cannot set property '$prismic' of undefined". I believe it's because of the core changes to Vue, i.e. Vue.use(PrismicVue, ... has changed and I now use a variable referencing createApp(). I.e. my new code is vueApp.use(PrismicVue, ... and I think this is maybe causing the initialisation issue.

Also with Vue 3 we don't even import Vue from 'vue' anymore, it's all handled with createApp.

Please let me know if you have any advice or fixes for this, I'd like to use Vue 3 and Prismic so it would be ideal. Thanks in advance.

https://aws1.discourse-cdn.com/business20/uploads/prismic/original/2X/4/47d4ca716badb58692ea9ca487da1a5e57e6d2fc.png - Full screenshot of console error.

@CalebKester
Copy link

I'm also wondering about the status on this.

@lihbr
Copy link
Member

lihbr commented Feb 16, 2021

Hey! Glad to see you all have an interest in Vue 3. I can't give you an ETA yet, but we'll start to work on a new major of Vue kit really soon in March with Nuxt 3 coming in April.

In the meantime, if you need to use Prismic with Vue 3 I can only suggest to fallback to @prismicio/client and prismic-dom.

@lihbr lihbr added the question Further information is requested label Feb 23, 2021
@lihbr
Copy link
Member

lihbr commented Mar 12, 2021

Hey @Rhyspacker, @CalebKester, I hope your journey with Vue 3 has been going well since last time!

I'm happy to announce you that we started working towards supporting Vue 3 and that we opened a Suggestion Thread for everyone to discuss feedback and improvements that could be made to this kit~

Cheers!

@lihbr lihbr closed this as completed Mar 12, 2021
@lihbr lihbr mentioned this issue Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants