Skip to content

bug: Internal Server Error on Nextjs App (SSR) #6173

Open
@rjborba

Description

@rjborba

Prerequisites

Stencil Version

4.27.0

Current Behavior

Internal Server Error when using SSR components on NextJs application

TypeError: The "payload" argument must be of type object. Received null] {
code: 'ERR_INVALID_ARG_TYPE'
}

Expected Behavior

Should work, according to documentation, out of the box.

System Info

"@stencil/core": "~4.27.0"
"@stencil/store": "2.0.16"
"@types/react": "^19"
"@types/react-dom": "^19"
"next": "15.1.7"

Steps to Reproduce

Just check the code sandbox

Code Reproduction URL

https://codesandbox.io/p/devbox/broken-store-on-conditial-rendered-component-forked-gm3khq?file=%2Fapp%2Fdemo-nextjs%2Fpackage.json%3A14%2C5-14%2C22&workspaceId=ws_JLonnZKrY598Z6t64ffEK3

Additional Information

Not sure if I'm doing something wrong, but I followed the documentation regarding integration.

Metadata

Metadata

Labels

Bug: ValidatedThis PR or Issue is verified to be a bug within StencilHelp Wanted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions