Comments (11)
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.
I just merged and released the fix. Thanks everyone.
from jsvideourlparser.
@claabs I created a PR for that, feel free to merge it!
from jsvideourlparser.
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.
@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.
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 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.
Same problem from NPM package. Broke app build.
from jsvideourlparser.
any news? Can you at least reopen?
from jsvideourlparser.
Hey @Zod-, just added a PR here to fix this issue, it would be great if you could merge it.
Thanks!
from jsvideourlparser.
Hope it's fixed now, I've pushed a new release.
from jsvideourlparser.
Related Issues (20)
- [Feature Req] Vidyard support?
- [ Feature Request ] Microsoft Stream support
- Get more audio and video extension
- Spotify support?
- Bugs regarding twitch provider videos & clips
- [Feature request] Youtube shorts support HOT 1
- [Feature request] Instagram support
- Support unlisted vimeo urls with parameters
- Support Wistia short links
- Handle non existing Youtube imageQuality-ies HOT 1
- [FEATURE] Add tiktok as new provider HOT 1
- [Feature] Add Loom support HOT 1
- [Feature request] livestream.com support (Vimeo) HOT 2
- Vimeo Live Stream Events shouldn't parse as videos HOT 3
- [tiktok] Short URL support
- provide title as part of the video info object after parsing url.
- YouTube /c/ and /user/ aliases are treated interchangeably but might point to different accounts
- Twitch mobile clip url not parsing correctly HOT 1
- Please add support for Vimeo hash on URLs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsvideourlparser.