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]: Missing decleration file for fetch-handler #868

Open
1 task
alastair-smith opened this issue Aug 28, 2024 · 1 comment
Open
1 task

[🐛 Bug]: Missing decleration file for fetch-handler #868

alastair-smith opened this issue Aug 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alastair-smith
Copy link

next-on-pages environment related information

System:
	Platform: linux
	Arch: x64
	Version: #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024
	CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
	Memory: 31 GB
	Shell: /usr/bin/zsh
Package Manager Used: pnpm (9.0.6)

Relevant Packages:
	@cloudflare/next-on-pages: 1.13.2
	vercel: N/A
	next: 14.1.4

Description

Using the custom worker entrypoint I am making my own entrypoint which involves importing the fetch-handler.

Could not find a declaration file for module '@cloudflare/next-on-pages/fetch-handler'

Reproduction

No response

Pages Deployment Method

None

Pages Deployment ID

No response

Additional Information

The package.json has this

"./fetch-handler": {
  "import": "./dist/fetch-handler/index.js",
  "types": "./dist/fetch-handler/index.d.ts"
},

However the built module does not include the index.d.ts file. So I assume there's a step missing in the build to include the types for this specific function.

Would you like to help?

  • Would you like to help fixing this bug?
@alastair-smith alastair-smith added the bug Something isn't working label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@alastair-smith and others