Code Monkey home page Code Monkey logo

Comments (7)

gtm-nayan avatar gtm-nayan commented on May 28, 2024 1

The latest version [email protected] is published on npm. You can install it with npm i --save-dev svelte-pdfjs

from svelte-pdfjs.

gtm-nayan avatar gtm-nayan commented on May 28, 2024

@eddyvinsensius which version of the package are you using?

from svelte-pdfjs.

eddyvinsensius avatar eddyvinsensius commented on May 28, 2024

i do a git clone from this github
(git clone https://github.com/gtm-nayan/svelte-pdfjs.git)
but it's give me error when i do npm run build

then i try to create blank project with latest sveltekit
and do a manual copy from this github (src, config, etc)
now it's running ok ..

so i don't know what cause the error from my 1st try

do i got the latest version from my 2nd attemp
because now everything is running ok
where can i get the latest version beside from src at this github?

thanks.

from svelte-pdfjs.

eddyvinsensius avatar eddyvinsensius commented on May 28, 2024

i try the latest version [email protected]
so i create a blank project of sveltekit latest
also do npm i --save-dev svelte-pdfjs (which is version 0.6.1)
and test it with default example
but now i'm getting this error:

Internal server error: /src/routes/+page.svelte:5:49 Unexpected token
Plugin: vite-plugin-svelte
File: /src/routes/+page.svelte:5:49
3 | import { base } from '$app/paths';
4 |
5 | import { Document, Page, preferThisHeight, type MultipleOf90 } from 'svelte-pdfjs';
^
6 |
7 | let scale = 1;

(the ^ point to "MultipleOf90")
what am i missing?
thanks.

from svelte-pdfjs.

gtm-nayan avatar gtm-nayan commented on May 28, 2024

That's probably because you're not using Typescript in your app or forgot to add either the preprocessor or the lang="ts" attribute.

from svelte-pdfjs.

eddyvinsensius avatar eddyvinsensius commented on May 28, 2024

ok it is running smoothly now ,
thank you for your wonderful svelte pdfjs module.

from svelte-pdfjs.

gtm-nayan avatar gtm-nayan commented on May 28, 2024

Glad you got it working. I'll close the issue.

from svelte-pdfjs.

Related Issues (11)

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.