Coder Social home page Coder Social logo

Comments (6)

edi9999 avatar edi9999 commented on May 27, 2024

That's strange, so you're saying the import doesn't work ? Are you using the latest version ?

from docxtemplater.

SegFault2017 avatar SegFault2017 commented on May 27, 2024

No, the import does not work on my end. I am using "docxtemplater": "^3.42.7", and my node version is v.16.5. The tsc complier is complaining about Cannot find module 'docxtemplater/expressions' or its corresponding type declarations.

from docxtemplater.

edi9999 avatar edi9999 commented on May 27, 2024

Did you run :

npm install angular-expressions ?

I have tried to reproduce your issue, but it seemed to work without a problem on typescript.

You can git clone the following repository and see for yourself, the docxtemplater/expresssions packages works fine for me :

git clone https://github.com/edi9999/typescript-docxtemplater.git

I'm using tsc --version = Version 4.9.5, maybe you're using an older version ??

from docxtemplater.

SegFault2017 avatar SegFault2017 commented on May 27, 2024

Did you run :

npm install angular-expressions ?

I have tried to reproduce your issue, but it seemed to work without a problem on typescript.

You can git clone the following repository and see for yourself, the docxtemplater/expresssions packages works fine for me :

git clone https://github.com/edi9999/typescript-docxtemplater.git

I'm using tsc --version = Version 4.9.5, maybe you're using an older version ??

Yea, I was using an older version(< 4.9.5) of tsc. Thanks!

from docxtemplater.

edi9999 avatar edi9999 commented on May 27, 2024

Which tsc were you using ? I'd like to, if possible make docxtemplater compatible also with older versions of typescript.

from docxtemplater.

SegFault2017 avatar SegFault2017 commented on May 27, 2024

Which tsc were you using ? I'd like to, if possible make docxtemplater compatible also with older versions of typescript.

I was using tsc version 3.2.1.

from docxtemplater.

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.