Git Product home page Git Product logo

Comments (8)

InfinitlyUndefined avatar InfinitlyUndefined commented on August 22, 2024

Fix that I used but won't work forever is to update the package.json from poru to export the index.d.ts as follows:

  "exports": {
    ".": {
      "import": "./dist/index.d.ts",
      "require": "./dist/index.js"
    }
  },

from poru.

Joniii11 avatar Joniii11 commented on August 22, 2024

Damn, i will add that

from poru.

Joniii11 avatar Joniii11 commented on August 22, 2024

Could you try it with these exports, i just wanna confirm if it will work?

  "exports": {
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.js",
      "types": "./dist/index.d.ts"
    }
  },

from poru.

InfinitlyUndefined avatar InfinitlyUndefined commented on August 22, 2024

Not at my machine, could I get back to you with that in about 6 or so hours?

from poru.

Joniii11 avatar Joniii11 commented on August 22, 2024

Yeah sure! On npm the package won't be updated so often sadly, so if you want you can do:

npm i https://github.com/parasop/poru

till parasop updates it on NPM if it fixes the issue with the declaration file :D

from poru.

InfinitlyUndefined avatar InfinitlyUndefined commented on August 22, 2024

I changed it and it worked beautifully, thank you for the fix. Much appreciated :)

from poru.

Joniii11 avatar Joniii11 commented on August 22, 2024

I am glad to hear that! @UnschooledGamer or @parasop you can close this issue

from poru.

UnschooledGamer avatar UnschooledGamer commented on August 22, 2024

Alright closing this Issue, Thanks @Joniii11 for looking into.

from poru.

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.