GithubHelp home page GithubHelp logo

Comments (12)

beerett avatar beerett commented on May 18, 2024 2

After countless google searching I wound up editing pdf.vue --
It looks related to the way modules are loaded -- I'm fairly new to Vue and ES in general...
I added .default to line 157 and the error is gone, looks like resizing/scaling works as well.
What led me to this: VueJS Changes

var resizeSensor = require('vue-resize-sensor').default;

from vue-pdf.

FranckFreiburger avatar FranckFreiburger commented on May 18, 2024 1

please check v2.x

from vue-pdf.

ismet avatar ismet commented on May 18, 2024

I'm getting exactly the same error..

from vue-pdf.

FranckFreiburger avatar FranckFreiburger commented on May 18, 2024

please give more details about your configuration. vue version, webpack version, ... even code sample

from vue-pdf.

ismet avatar ismet commented on May 18, 2024

I am using the same code in your documentation : Example - complete.

The package versions are as following;

from vue-pdf.

accardo avatar accardo commented on May 18, 2024

I'm getting exactly the same error..

from vue-pdf.

blitheinsz avatar blitheinsz commented on May 18, 2024

I'm getting exactly the same error..

from vue-pdf.

beerett avatar beerett commented on May 18, 2024

Getting the same error, the PDF does load albeit stretched and not scaled properly. Also I'm using the quasar framework.

<template>
<div> 
     <div v-if="recipe" class="content" :key="recipe.id">      
       <pdf :src=recipe.pdf style="width:75%"></pdf>
      </div> 
</div>
</template>
..
import pdf from 'vue-pdf'

from vue-pdf.

FranckFreiburger avatar FranckFreiburger commented on May 18, 2024

Thanks for sharing your investigations.
Note that I will use esm only in the next major version of vue-pdf.

from vue-pdf.

felisio avatar felisio commented on May 18, 2024

@FranckFreiburger , When you will generate a new version, fixing this bug? Thanks..

from vue-pdf.

accardo avatar accardo commented on May 18, 2024

image

from vue-pdf.

yiyulong avatar yiyulong commented on May 18, 2024

Thanks to @beerett, my problem has been solved

from vue-pdf.

Related Issues (20)

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.