Git Product home page Git Product logo

Comments (15)

edisonneza avatar edisonneza commented on September 6, 2024 3

Yeah, I'll do my best. I think this weekend I'll publish new version.

from jspdf-invoice-template.

edisonneza avatar edisonneza commented on September 6, 2024 1

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.

slimlime avatar slimlime commented on September 6, 2024 1

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.

edisonneza avatar edisonneza commented on September 6, 2024 1

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.

bhasshaw avatar bhasshaw commented on September 6, 2024 1

npm version 6.14.13 and node version 14.17.2

from jspdf-invoice-template.

edisonneza avatar edisonneza commented on September 6, 2024 1

@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.

bhasshaw avatar bhasshaw commented on September 6, 2024 1

I updated node to 16.5.0 and nvm updated npm to 7.19.1 and now it works.

from jspdf-invoice-template.

edisonneza avatar edisonneza commented on September 6, 2024

Are you trying to import it in a nodejs file, or in a frontend js file?

from jspdf-invoice-template.

jasonakon avatar jasonakon commented on September 6, 2024

Hi, in frontend js file

from jspdf-invoice-template.

vegesriharsha avatar vegesriharsha commented on September 6, 2024

Thanks for sharing the template. I am encountering the same issue that @jasonakon reported after I imported the package.

from jspdf-invoice-template.

bhasshaw avatar bhasshaw commented on September 6, 2024

Any update on this issue? When will you be fixing this?

from jspdf-invoice-template.

slimlime avatar slimlime commented on September 6, 2024

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

This is related to #2 #2

from jspdf-invoice-template.

edisonneza avatar edisonneza commented on September 6, 2024

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.

bhasshaw avatar bhasshaw commented on September 6, 2024

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.

edisonneza avatar edisonneza commented on September 6, 2024

I'm gonna close this issue due to the fix done in version 1.3.2

from jspdf-invoice-template.

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.