Giter VIP home page Giter VIP logo

svelte-qrcode's Introduction

Hi, I'm Jonas Alves! ✌

Linkedin: jonas-alves-9163a5136

Amante do Javascript,
Apaixonado por educação e tecnologia!


Node React.js / React Native Typescript Svelte Styled Components Mongo DB Redux Webpack

svelte-qrcode's People

Contributors

codymikol avatar daxxog avatar dependabot[bot] avatar dev-itzarun avatar jonasjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

svelte-qrcode's Issues

Does this not work for sveltekit?

Getting Uncaught (in promise) SyntaxError: The requested module '/node_modules/svelte-qrcode/src/lib/qrcode/index.js' does not provide an export named 'default'

Install warning

I get this warning when using the library:

[vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

[email protected]

Svelte not recognizing script

Hi, I have the following error when importing QrCode from "svelte-qr"

I am using vite/svelte and keep on giving me the error that it could not find a declaration file for module 'svelte-qrcode' even when installed in my package.json

my simple code:
script

<style global lang="postcss">
  .qrcode {
    position:relative
    }
  .scale-20 {
      --tw-scale-x: .2;
      --tw-scale-y: .2;
    }
</style>

<script lang="ts">
  import QrCode from "svelte-qrcode"
  export let name: string;
  let  WxH:number = 400
</script>

<template>

  <div class="relative">
    <!-- <div class="square relative"></div> -->
    <QrCode value="https://github.com/JonasJs/svelte-qrcode/blob/master/src/lib/qrcode/index.js" errorCorrection="H" size={WxH} class="relative"/>

  </div>
</template>

[BUG] Cannot set properties of undefined

When trying to use your library i get the following error:

Cannot set properties of undefined (setting 'QRious')
TypeError: Cannot set properties of undefined (setting 'QRious')
    at /node_modules/svelte-qrcode/src/lib/qrcode/index.js:22:20
    at /node_modules/svelte-qrcode/src/lib/qrcode/index.js:23:4

I am running sveltekit next with svelte version ^3.49.0 on vite ^3.0.7

npm ERR! Cannot read properties of null (reading 'matches') Using Sveltekit 2 and svelte 5

I am trying to install this package and get the following errors. I have used this package successfully before.

npm ERR! Cannot read properties of null (reading 'matches')

also my error window read the following:

Cannot set properties of undefined (setting 'QRious')

Currently using "svelte": "^5.0.0-next.1", "@sveltejs/kit": "^2.0.0"
Thanks for your time!

Server-side rendering

It's not a huge thing, but would it somehow be possible to support server-side rendering?

TypeError: Cannot set properties of undefined (setting 'QRious')

Trying to add QrCode into my Svelte app

I've put everything like in the example

but got this error:
[vite] Error when evaluating SSR module /src/components/UserLockers.svelte: failed to import "/node_modules/svelte-qrcode/src/lib/index.svelte" |- TypeError: Cannot set properties of undefined (setting 'QRious')

Access to resulting Image

Any chance of adding

export function getImage() {
  return image;
}

My use case is the user needs to be able to copy the QRCode image & paste it into an email.

Cannot refresh the page

I added a QR code to the page that corresponds to contact, but whenever I hit refresh i get 500 internal error.

In my terminal highlighted in red I get:
Internal server error: Cannot set properties of undefined (setting 'QRious')

Aside from that your project is awesome man! thank you so much

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.