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

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

Open
mukeshprajapati-kombee opened this issue Sep 13, 2024 · 0 comments

Comments

@mukeshprajapati-kombee
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant