jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.31k stars 6.47k forks source link

Error: ENOENT: no such file or directory, open '/home/vsts/work/1/s/node_modules/@sanity/image-url/src/builder.ts' #15304

Closed mukeshprajapati-kombee closed 2 months ago

mukeshprajapati-kombee commented 2 months ago

It seems that the system is trying to access a src/builder.ts file, which does not exist in the installed version of @sanity/image-url. This issue is happening during a CI/CD pipeline using Azure Pipelines, but I also confirmed that this file doesn't exist locally in node_modules.

To Reproduce

Steps to reproduce the behavior:

  1. Set up a project using @sanity/image-url in a Next.js application.
  2. Deploy the application in an Azure Pipelines environment.
  3. During the build process, the error is triggered when trying to access the missing src/builder.ts file.

Expected behavior

The build should reference the compiled files from the lib/ folder, not the source files from src/, and the process should complete without errors.

Screenshots image

@sanity/image-url: ^1.0.2 Local: Windows 10 CI/CD: Azure Pipelines (Linux-based agent)

npm: 9.8.1 node: v18.17.1

github-actions[bot] commented 2 months ago

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

github-actions[bot] commented 1 month ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.