Skip to content

[🐛 Bug]: "Error: The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented." #487

@typeofweb

Description

@typeofweb

next-on-pages environment related information

System:
	Platform: darwin
	Arch: arm64
	Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
	CPU: (8) arm64 Apple M1 Pro
	Memory: 16 GB
	Shell: /bin/zsh
Binaries:
	Node: 20.6.0
	Bun: N/A
	pnpm: 8.8.0
	Yarn: N/A
	npm: 9.8.1
Package Manager Used: pnpm
Relevant Packages:
	@cloudflare/next-on-pages: 1.6.3
	vercel: N/A
	next: 13.5.4

Description

First request usually works. Then, refreshing the page or opening it in a new tab throws the following error:

"Error: The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented."

If I wait a few minutes and refresh, it works again but just once. This gives me a hunch it's something about the cache maybe?

It happens both on Cloudflare as well as locally when using wrangler pages dev.

Error: The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented.
    at $ (file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:15:2103)
    at file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:5:1178
    at file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:3:4700
    at file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:3:3737
    at Array.map (<anonymous>)
    at file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:3:3730
    at new Promise (<anonymous>)
    at ee.drain (file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:3:3660)
    at Object.flush (file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:5:1052)
    at file:///private/var/folders/gc/311x73xj7sd9cktxzv9r0kk00000gn/T/tmp-58358-0unFygPsVvAt/__next-on-pages-dist__/webpack/00a5d258dd6c57effb2ee12c80334a1e.js:2:5656 {
  stack: Error: The 'referrerPolicy' field on 'RequestIniti…ebpack/00a5d258dd6c57effb2ee12c80334a1e.js:2:5656,
  message: The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented.
}

Pages Deployment Method

Pages CI (GitHub/GitLab integration)

Pages Deployment ID

3255a5ad-f60d-418e-b795-4214680de433

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions