question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any plans on Nuxt 3 support? I’m now getting errors

[nuxt] [request error] [unhandled] [500] window is not defined
  at $id_hUmYHrepnE (/C:/frontend/.nuxt/dist/server/server.mjs:7890:5)    
  at async __instantiateModule__ (/C:/frontend/.nuxt/dist/server/server.mjs:121789:3)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
waysagencycommented, Oct 7, 2022

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

image

0reactions
Binaryifycommented, Nov 21, 2022

plz set cornerAlignment’s scale to 1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Announcing Nuxt 3.0 stable
On the server side, Nuxt 3 supports Node.js 14, 16, 18, and 19 ...
Read more >
Nuxt - The Intuitive Vue Framework
Build your next Vue.js application with confidence using Nuxt. An open source framework making web development simple and powerful.
Read more >
Nuxt 3 Release Candidate · Discussion #3447 - GitHub
We are planning to initiate a fresh rewrite of Auth module based on session support and composables from Nuxt 3. It is included...
Read more >
Nuxt 3 is here! What does that mean for you? | Vue Mastery
It's only right that Nuxt 3 was built to support Vue 3 features. Vue 3 was released in October 2020 and has since...
Read more >
Nuxt 3 support : WEB-54200 - YouTrack
To support Nuxt 3 we need: WEB-53890 - index d.ts files in .nuxt folder; WEB-54199 - recognize GlobalComponents Vue 3 interface; remove special...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found