-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
bugSomething that isn't workingSomething that isn't working
Description
Which Cloudflare product(s) does this pertain to?
Pages
What version(s) of the tool(s) are you using?
2.14.2 [create-cloudflare]
What version of Node are you using?
20.11.1
What operating system and version are you using?
macOS Sonoma 14.4
Describe the Bug
Observed behavior
I noticed that:
- When using the command
npm create cloudflare@latest my-angular-app -- --framework=angular, an Angular SSR app is created with additional files and changes to make it work with Cloudflare Workers/Pages. - Static Site Generation (SSG) is enabled by default (
"prerender": trueonangular.json) - If you turn off SSG (
"prerender": false), so everything is Server Side Rendered (SSR), and add a private property, things break.
Expected behavior
SSR should just work and not break with private properties.
Steps to reproduce
- Create a Cloudflare version of an Angular app
npm create cloudflare@latest my-angular-app -- --framework=angular - Turn off Static Site Generation (SSG) by setting
"prerender": falseonangular.json - Add a private property (like, for example,
#test = 'test') - Run the app:
npm run startand pressb
cc: @petebacondarwin @alan-agius4 @JeanMeche
Please provide a link to a minimal reproduction
https://github.com/nunoarruda/my-angular-app
Please provide any relevant error logs
[wrangler:err] TypeError: Class constructor t cannot be invoked without 'new'
at t.handleNavigationRequest (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ZK4POREG.mjs:2:47542)
at t.scheduleNavigation (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ZK4POREG.mjs:2:63103)
at t.navigateToSyncWithBrowser (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ZK4POREG.mjs:2:61042)
at t.initialNavigation (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ZK4POREG.mjs:2:60522)
at s (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ZK4POREG.mjs:2:64001)
at null.<anonymous> (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ES3Z552B.mjs:34:29056)
at [object Object]
at e._loadComponent (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ES3Z552B.mjs:34:29045)
at e.bootstrap (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ES3Z552B.mjs:34:28076)
at null.<anonymous> (file:///Users/nunoarruda/Desktop/my-angular-app/.wrangler/tmp/pages-3oJJr3/chunk-ES3Z552B.mjs:34:35938)
[wrangler:inf] GET / 500 Internal Server Error
meeksemus and naveedahmed1
Metadata
Metadata
Assignees
Labels
bugSomething that isn't workingSomething that isn't working
Type
Projects
Status
Done