Code Monkey home page Code Monkey logo

Comments (11)

claabs avatar claabs commented on July 22, 2024 3

That's my bad. I think this line just needs to be removed. There's no reason for template to be included in the release package.

from jsvideourlparser.

Zod- avatar Zod- commented on July 22, 2024 1

I just merged and released the fix. Thanks everyone.

from jsvideourlparser.

saibayadon avatar saibayadon commented on July 22, 2024

@claabs I created a PR for that, feel free to merge it!

from jsvideourlparser.

romgere avatar romgere commented on July 22, 2024

The issue still exists in last release 0.4.3...

It seems the PR didn't fix it :

node_modules/js-video-url-parser/lib/index.d.ts:9:15 - error TS2307: Cannot find module './provider/template' or its corresponding type declarations.

9 export * from './provider/template';
                ~~~~~~~~~~~~~~~~~~~~~

I didn't take a look to the PR before merge, but the problem does not concern this line :
https://github.com/brunolazzaro/jsVideoUrlParser/blob/c10f242c8ae4299eb89d7ae5013b0efd91f5c37c/lib/provider/template.d.ts#L1

But the import of template.d.ts it self wich is not present in release package.

Following @claabs comment, do you want me to make a PR to remove the import line ?

from jsvideourlparser.

saibayadon avatar saibayadon commented on July 22, 2024

@romgere Can you check by installing the package directly from the repo? yarn add https://github.com/Zod-/jsVideoUrlParser.

My PR only fixed the type problem, so if you install the package directly from the repo it will work but as you said, and following @claabs it's clear that we need to delete those files entirely since they are ignored by NPM (https://github.com/Zod-/jsVideoUrlParser/blob/master/.npmignore) thus will always break on release.

from jsvideourlparser.

saibayadon avatar saibayadon commented on July 22, 2024

Just opened a PR with the line removed as indicated by @claabs. I didn't realize when I opened the PR before reading @claabs comment that the template file never gets included on the NPM package. My fix only applied if you were installing the package directly from the repo (which I guess it's a bit of an issue if installing it one way works, but releasing through NPM breaks?). I just assumed that if we fixed the type issue, there wouldn't be an issue with the file being in the exports list since it worked just fine when installing via the repo. My bad!

@Zod- Is there a way to check if this actually fixes the issue before publishing to NPM?

from jsvideourlparser.

romgere avatar romgere commented on July 22, 2024

@romgere Can you check by installing the package directly from the repo? yarn add https://github.com/Zod-/jsVideoUrlParser

@brunolazzaro I confirm installing from GH can fixe the issue.

But a fix for npm release have to be also release I think, Thx for tackling this 🙏

from jsvideourlparser.

rskvazh avatar rskvazh commented on July 22, 2024

Same problem from NPM package. Broke app build.

from jsvideourlparser.

agalazis avatar agalazis commented on July 22, 2024

any news? Can you at least reopen?

from jsvideourlparser.

murraco avatar murraco commented on July 22, 2024

Hey @Zod-, just added a PR here to fix this issue, it would be great if you could merge it.

Thanks!

from jsvideourlparser.

Zod- avatar Zod- commented on July 22, 2024

Hope it's fixed now, I've pushed a new release.

from jsvideourlparser.

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.