Comments (15)
Yeah, I'll do my best. I think this weekend I'll publish new version.
from jspdf-invoice-template.
I had a similar issue about these but I thought it was fixed. Probably is caused by the npm version because in my tests I did not encounter it. Anyway I will remove the optional chaining package asap.
from jspdf-invoice-template.
I used a quick online transpiler tool to fill the modern syntax into compatible js for those optional chaining accessors etc ./node_modules/jspdf-invoice-template/src/index.js 90:22
to start prototyping with it faster (unreadable code, though).
TypeScript <3
Thank you for the package.
Looking forward to seeing how you update this.
from jspdf-invoice-template.
I used a quick online transpiler tool to fill the modern syntax into compatible js for those optional chaining accessors etc
./node_modules/jspdf-invoice-template/src/index.js 90:22
to start prototyping with it faster (unreadable code, though).TypeScript <3
Thank you for the package.
Looking forward to seeing how you update this.
Thanks man! I'll do my best. I have been too busy and couldn't do the updates till now. I think and hope these days I'll push them.
from jspdf-invoice-template.
npm version 6.14.13 and node version 14.17.2
from jspdf-invoice-template.
@bhasshaw please, can you try to update npm and then try if this issue is still present? (I'm trying to understand the issue so I can leave the optional chaining package). Thank you!
from jspdf-invoice-template.
I updated node to 16.5.0 and nvm updated npm to 7.19.1 and now it works.
from jspdf-invoice-template.
Are you trying to import it in a nodejs file, or in a frontend js file?
from jspdf-invoice-template.
Hi, in frontend js file
from jspdf-invoice-template.
Thanks for sharing the template. I am encountering the same issue that @jasonakon reported after I imported the package.
from jspdf-invoice-template.
Any update on this issue? When will you be fixing this?
from jspdf-invoice-template.
Adding stdout text copy paste here for searchability
Error: ./node_modules/jspdf-invoice-template/src/index.js 90:22
Module parse failed: Unexpected token (90:22)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| orientationLandscape: props.orientationLandscape || false,
| logo: {
> src: props.logo?.src || "",
| width: props.logo?.width || "",
| height: props.logo?.height || "",
Is updating the ECMAScript target sufficient to resolve the modern syntax?
i.e. was the loader issue caused by 3751f8b#diff-b55cdbef4907b7045f32cc5360d48d262cca5f94062e353089f189f4460039e0
The babel plugin would have fixed this?
78e7838#diff-09c56b2bf95de2a608a36afef3b6893146a959d6739be0a154dc9c9f02d80f24
from jspdf-invoice-template.
Please, can someone let me know which version of nodejs and npm have you installed?
Cmd commands:
npm -v and node -v
from jspdf-invoice-template.
I'm using a .nvmrc file with the node version 14.17.2, that then determines the npm version of 6.14.13 so there is no updating it beyond that.
from jspdf-invoice-template.
I'm gonna close this issue due to the fix done in version 1.3.2
from jspdf-invoice-template.
Related Issues (20)
- Japanese language HOT 15
- Add a stamp HOT 2
- 1.4.0 invoice header is expecting string[] but demo site given as object[] HOT 2
- using blob , prepend an image and upload to firebase storage doesn't work, but saving locally works HOT 2
- Semi missing license HOT 1
- Generate 2 PDF Everytime HOT 2
- Using Data URLS for the Logo HOT 5
- Set row height/padding HOT 3
- For Loop Dynamic Rendering, Saves Only 10 Times HOT 2
- Invalid Hook Call HOT 2
- Possibility to add a new table or more HOT 1
- Possibility to add a table background color , header color or text color ? HOT 2
- Uncaught TypeError: t is undefined HOT 5
- Question HOT 1
- Trouble writing Arabic HOT 2
- Directly saving as PDF - Node HOT 1
- Adding Columns to Footer
- Sveltkit Client side error window not defined. HOT 2
- ADD FEATURE Direct printing on same page on Sveltkit projects or others Reactjs/Next/Remix/VanillaJs
- I am not able to add the currency symbol to the price and the total. HOT 1
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 jspdf-invoice-template.