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

imgix-url-builder types cannot be resolved #324

Closed
cornedor opened this issue Sep 27, 2023 · 1 comment · Fixed by prismicio-community/imgix-url-builder#5
Closed

imgix-url-builder types cannot be resolved #324

cornedor opened this issue Sep 27, 2023 · 1 comment · Fixed by prismicio-community/imgix-url-builder#5
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@cornedor
Copy link

Versions

  • @prismicio/client: 7.2.0
  • node:
  • typescript: 5.2.2

Reproduction

https://stackblitz.com/edit/stackblitz-starters-3rsa43?file=index.ts

Additional Details

Steps to reproduce

Use typescript with skipLibCheck set to false in a project using @prismicio/client.

What is expected?

Type check would complete successfully

What is actually happening?

node_modules/@prismicio/client/dist/helpers/asImagePixelDensitySrcSet.d.ts:1:47 - error TS7016: Could not find a declaration file for module 'imgix-url-builder'. '/home/projects/stackblitz-starters-3rsa43/node_modules/imgix-url-builder/dist/index.mjs' implicitly has an 'any' type.
  There are types at '/home/projects/stackblitz-starters-3rsa43/node_modules/imgix-url-builder/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'imgix-url-builder' library may need to update its package.json or typings.

1 import { BuildPixelDensitySrcSetParams } from "imgix-url-builder";
                                                ~~~~~~~~~~~~~~~~~~~

node_modules/@prismicio/client/dist/helpers/asImageSrc.d.ts:1:32 - error TS7016: Could not find a declaration file for module 'imgix-url-builder'. '/home/projects/stackblitz-starters-3rsa43/node_modules/imgix-url-builder/dist/index.mjs' implicitly has an 'any' type.
  There are types at '/home/projects/stackblitz-starters-3rsa43/node_modules/imgix-url-builder/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'imgix-url-builder' library may need to update its package.json or typings.

1 import { ImgixURLParams } from "imgix-url-builder";
                                 ~~~~~~~~~~~~~~~~~~~

node_modules/@prismicio/client/dist/helpers/asImageWidthSrcSet.d.ts:1:40 - error TS7016: Could not find a declaration file for module 'imgix-url-builder'. '/home/projects/stackblitz-starters-3rsa43/node_modules/imgix-url-builder/dist/index.mjs' implicitly has an 'any' type.
  There are types at '/home/projects/stackblitz-starters-3rsa43/node_modules/imgix-url-builder/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'imgix-url-builder' library may need to update its package.json or typings.

1 import { BuildWidthSrcSetParams } from "imgix-url-builder";
                                         ~~~~~~~~~~~~~~~~~~~


Found 3 errors in 3 files.

Errors  Files
     1  node_modules/@prismicio/client/dist/helpers/asImagePixelDensitySrcSet.d.ts:1
     1  node_modules/@prismicio/client/dist/helpers/asImageSrc.d.ts:1
     1  node_modules/@prismicio/client/dist/helpers/asImageWidthSrcSet.d.ts:1
@cornedor cornedor added the bug Something isn't working label Sep 27, 2023
@github-actions
Copy link

This issue has been labeled as a bug since it was created using the 🚨 Bug Report Template.

Hi there, thank you so much for the report!

Following our Maintenance Process, we will review your bug report and get back to you next Wednesday. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue includes the following:

  • Information about your environment and packages you use (Node.js version, package names and their versions, etc.)
    Feel free to attach a copy of your package.json file.
  • Any troubleshooting steps you already went through
  • A minimal reproduction of the issue, and/or instructions on how to reproduce it

If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to open a pull request addressing it. Check out our quick start guide for a simple contribution process.

If you think your issue is a question (not a bug) and would like quicker support, please close this issue and forward it to an appropriate section on our community forum: https://community.prismic.io

- The Prismic Open-Source Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants