Skip to content

Navigation Menu

Sign in
Sign up

Failed to execute 'appendChild' on 'Node': Private field '#if' must be declared in an enclosing class #2672

Unanswered
michaelmattiolo-calicantus asked this question in Q&A
Discussion options

I'm new to catalyst.
I created a fresh new project (twice) with no problems.
Once started with pnpm dev I get 1 issue notification from Next. It looks like some handlebars code is injected into a Script section.
Have anybody faced this error?

Here's the error:

Error Type

Runtime SyntaxError

Error Message

Failed to execute 'appendChild' on 'Node': Private field '#if' must be declared in an enclosing class

at eval (components/scripts/scripts.tsx:64:18)
at Array.map (<anonymous>:1:18)
at ScriptManagerScripts (components/scripts/scripts.tsx:63:10)
at RootLayout (app/[locale]/layout.tsx:117:9)

Code Frame

62 | .filter((scriptProps): scriptProps is ComponentProps => scriptProps !== null)
63 | .map((scriptProps) => {
64 | return <Script key={scriptProps.id} {...scriptProps} />;
| ^
65 | })}
66 | </>
67 | );

Next.js version: 15.5.1-canary.4 (Webpack)

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /