Giter Club home page Giter Club logo

Comments (6)

MaokaiLin avatar MaokaiLin commented on July 28, 2024 1

actually took another look. pdfmake is using lodash 3.1.0, and zipWith is introduced in lodash 3.8.0.

note that lodash v3.1.0 is significantly behind the current version (4.5.1). but either way, the lodash library used in pdfmake should be strictly confined within the package. could you get this fixed?

from export.

maertz avatar maertz commented on July 28, 2024

Thanks for pointing this out, we simply include the default built from pdfMake.
They have already few issues regarding the namespacing issue, one seems to be the one you are looking for which respects the loDash global var.

On the other hand it might be fixed if you manually include the resources into your document and add the "loDash" resource after pdfMake.js file, that might already fix your issue by resetting the overwritten loDash methods.

from export.

MaokaiLin avatar MaokaiLin commented on July 28, 2024

Got it. I'll try it out later today and let you know if it works. Thanks for getting back so quickly.

from export.

maertz avatar maertz commented on July 28, 2024

any news?

from export.

mg1075 avatar mg1075 commented on July 28, 2024

@maertz - I was wondering about some odd lodash behaviors. Yes, amcharts/pdfmake in front of lodash dependency overrides my app's lodash version. Putting (my newer or at least expected version) lodash after amcharts/pdfmake did override the old lodash version inside pdfmake.

from export.

yaviner avatar yaviner commented on July 28, 2024

Hi,

I encountered this issue recently as well! I ended up fixing it by removing pdfmake as a dependency (I wasn't using this feature), but it's worth noting that the latest versions of pdfmake have fixed this: bpampuch/pdfmake#443

from export.

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.