-
Notifications
You must be signed in to change notification settings - Fork 123
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
Nuxt 3 support #133
Comments
plz use |
Alright I've got it working now. Had to add the package to build.transpile. // https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
build: {
transpile: ["vue-qr", "@diadal/vue3-qr-code-styling"],
},
}); But now I have some issues with the appearence of the qr code. Here is my code <script setup lang="ts">
import vueQr from "vue-qr/src/packages/vue-qr.vue";
const ComponentOptions = reactive({
data: {
scale: 1,
},
timing: {
scale: 1,
protectors: true,
},
alignment: {
scale: 0.5,
protectors: true,
},
cornerAlignment: {
scale: 0.5,
protectors: true,
},
});
</script>
<template>
<div>
<ClientOnly>
<vueQr text="https://test.nl/" :size="500" :components="ComponentOptions"></vueQr>
</ClientOnly>
</div>
</template> And this is what it looks like |
what issues you mean |
Look at the bottom right square. There are the small squares smaller then the rest of the squares. Don't think this is normal behaviour |
plz set cornerAlignment's scale to 1 |
我加了client-only还是出现window is not defined |
It turns out that I have the same problem, I added the build in the nuxt configuration, however it gives me another error, about 'TextEncoder is not defined', I could see that the error occurs in the /io.js file; Any idea why the error occurs? |
Any plans on Nuxt 3 support? I'm now getting errors
The text was updated successfully, but these errors were encountered: