Coder Social home page Coder Social logo

Comments (3)

davidje13 avatar davidje13 commented on June 1, 2024

your import line looks fine, so I have to assume this is an issue with the way Vue is configured (most likely it's not reading the package.json exports correctly). Are you able to create a minimal complete reproduction? You might also want to check that you're using the latest version of Vue; Webpack added support for wildcard export maps in January 2021, so anything older than WebPack ~5.30 might have this issue.

btw, if possible I'd recommend sticking to toCanvas rendering. SVG output is just for when offering a download option to users or if you need to generate an image on the server-side. Maybe that's your use-case, but most of the time it isn't.

from lean-qr.

davidje13 avatar davidje13 commented on June 1, 2024

I published 1.5.0 which replaces the wildcard exports with explicit exports, which might help you (assuming the issue was some tooling which doesn't understand wildcard exports). Give it a try and let me know, but if it doesn't fix it then I'll need to see an example of it failing to diagnose further.

from lean-qr.

moritzpflueger avatar moritzpflueger commented on June 1, 2024

Thanks for the swift feedback. I did not manage to set up a reproduction. On remote environment it simply works... This makes me think it's something with my local environment. I'll close this issue, until I get the chance to build something that can reproduce the issue.

I'll stick with the canvas option. it's working just fine 👍

*edit: Thank you for publishing an update. Unfortunately it did not solve the issue for me.

from lean-qr.

Related Issues (8)

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.