ampproject / ampproject/bento

[BUG] Bento components on NEXTJS - ReferenceError: self is not defined

Open
#18 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
43
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Following guide at

https://bentojs.dev/documentation/guides/bento-next.js-guide/

and gets this error:
ReferenceError: self is not defined

Maybe bento expects window? And next is SSR?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Bento Next.js guide and reproduce the ReferenceError in a server-rendered Next.js setup. Trace where the component or bundle references `self` during SSR; done means the documented integration no longer fails with `ReferenceError: self is not defined`.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.