Comments (7)
The latest version [email protected] is published on npm. You can install it with npm i --save-dev svelte-pdfjs
from svelte-pdfjs.
@eddyvinsensius which version of the package are you using?
from svelte-pdfjs.
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.
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.
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.
ok it is running smoothly now ,
thank you for your wonderful svelte pdfjs module.
from svelte-pdfjs.
Glad you got it working. I'll close the issue.
from svelte-pdfjs.
Related Issues (11)
- Implement text layer rendering
- Dispatch an event when a page has finished loading
- SSR compatibility
- Text rendering is broken in build mode
- Flash of unwanted content if both the doc url and page number are changed at the same time
- Make the component compatible with SSR HOT 1
- Rethink onMount abstraction HOT 2
- Support local file path or array buffer HOT 2
- Expose PDFDocumentProxy, or some other way of accessing document info HOT 1
- Having no joy with this component - "exports is not defined" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-pdfjs.