Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] @ts-ignore in cloudinary-loader.ts #425

Open
colbyfayock opened this issue Jan 25, 2024 · 7 comments · Fixed by #552
Open

[Bug] @ts-ignore in cloudinary-loader.ts #425

colbyfayock opened this issue Jan 25, 2024 · 7 comments · Fixed by #552
Assignees
Labels
help wanted Extra attention is needed released on @beta

Comments

@colbyfayock
Copy link
Collaborator

Bug Report

Describe the bug

A @ts-ignore is currently in place in the cloudinaryLoader function which is what organizes and ultimately helps to build a Cloudinary URL based on Next.js props.

https://github.com/cloudinary-community/next-cloudinary/blob/main/next-cloudinary/src/loaders/cloudinary-loader.ts#L58-L59

Goal wouild be to address whatever type issues are preventing this line from being removed.

@colbyfayock colbyfayock added the help wanted Extra attention is needed label Sep 27, 2024
@RaghavMangla
Copy link

Hi, I'd like to work on this issue

@colbyfayock
Copy link
Collaborator Author

we'll start with the other issue and can work on other issues 1 by 1 unless someone else takes it first. thanks

@vickywane
Copy link
Contributor

Hi @colbyfayock,

I would love to work on this.

I just completed the #541 PR

@colbyfayock
Copy link
Collaborator Author

sure thing!

@vickywane
Copy link
Contributor

@colbyfayock I have sent in a PR for this.

colbyfayock added a commit that referenced this issue Nov 1, 2024
# Description

This PR will add the `src` type to `CloudinaryLoaderCldOptions`
interface to fix the ts error being thrown from the
`cloudinary-loader.ts` file.

Fixes This will close #425 

<!-- Specify above which issue this fixes by referencing the issue
number (`#<ISSUE_NUMBER>`) or issue URL. -->
<!-- Example: Fixes
https://github.com/cloudinary-community/next-cloudinary/issues/<ISSUE_NUMBER>
-->

## Type of change

<!-- Please select all options that are applicable. -->

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Fix or improve the documentation
- [ ] This change requires a documentation update


# Checklist

<!-- These must all be followed and checked. -->

- [x] I have followed the contributing guidelines of this project as
mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md)
- [x] I have created an
[issue](https://github.com/cloudinary-community/next-cloudinary/issues)
ticket for this PR
- [x] I have checked to ensure there aren't other open [Pull
Requests](https://github.com/cloudinary-community/next-cloudinary/pulls)
for the same update/change?
- [x] I have performed a self-review of my own code
- [x] I have run tests locally to ensure they all pass
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes needed to the documentation

---------

Co-authored-by: Colby Fayock <[email protected]>
github-actions bot pushed a commit that referenced this issue Nov 1, 2024
# [7.0.0-beta.10](v7.0.0-beta.9...v7.0.0-beta.10) (2024-11-01)

### Bug Fixes

* add src type to CloudinaryLoaderCldOptions interface ([#552](#552)) ([74e1b96](74e1b96)), closes [#425](#425)
Copy link

github-actions bot commented Nov 1, 2024

🎉 This issue has been resolved in version 7.0.0-beta.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vickywane
Copy link
Contributor

@colbyfayock I think we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed released on @beta
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants