# Angular 17 SSR Edge Function Error when using Route IDs

**URL:** <https://answers.netlify.com/t/angular-17-ssr-edge-function-error-when-using-route-ids/109266>\
**Category:** Support\
**Tags:** angular\
**Created:** [December 26, 2023, 12:24am UTC](https://answers.netlify.com/t/angular-17-ssr-edge-function-error-when-using-route-ids/109266 "2023-12-26T00:24:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shib](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/shib/32/51346_2.png) [@shib](https://answers.netlify.com/u/shib)\
**Post date:** [December 26, 2023, 12:24am UTC](https://answers.netlify.com/t/angular-17-ssr-edge-function-error-when-using-route-ids/109266/1 "2023-12-26T00:24:43Z")

</div>

Hello!

I’m having trouble with an Edge Function error that only happens when I try to use routes with Route IDs.

I’m using Angular: 17.0.8 with SSR. My site runs fine locally via `ng serve` but also chucks this same error when using `netlify serve`.

Site is here: [https://main--shibblesio-blog.netlify.app/](https://main--shibblesio-blog.netlify.app/)

The said error:

```auto
Dec 26, 11:07:21 AM: 01HJHQ52 error [Angular SSR] TypeError: Class constructor t cannot be invoked without 'new'
    at file:///root/dist/shibblesio-blog/server/chunk-4MUZ64KL.mjs:43:35934
    at Generator.next (<anonymous>)
    at file:///root/dist/shibblesio-blog/server/chunk-KRLCULJA.mjs:2:1604
    at new i (file:///root/dist/shibblesio-blog/server/polyfills.server.mjs:4:2246)
    at J (file:///root/dist/shibblesio-blog/server/chunk-KRLCULJA.mjs:2:1424)
    at Z6 (file:///root/dist/shibblesio-blog/server/chunk-4MUZ64KL.mjs:43:35889)
    at default (file:///root/.netlify/edge-functions/angular-ssr/angular-ssr.mjs:11:24)
    at file:///root/src/bootstrap/function_chain.ts:401:15
    at AsyncLocalStorage.run (node:async_hooks:224:13)
    at FunctionChain.runFunction (file:///root/src/bootstrap/function_chain.ts:396:28)

```

I’m really not sure what’s up. Site is super basic. I did a test with defined routes (not using route IDs) and that works fine.

e.g. in my Angular routes:

`path: 'post/:id'` - any route under this (i.e. post/anything) will cause the above error to throw  
`path: 'post/test'` - completely fine (working here: [https://main--shibblesio-blog.netlify.app/post/test](https://main--shibblesio-blog.netlify.app/post/test))

Any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [December 30, 2023, 1:25pm UTC](https://answers.netlify.com/t/angular-17-ssr-edge-function-error-when-using-route-ids/109266/2 "2023-12-30T13:25:23Z")

</div>

Can you please create a minimal git repo with your setup so we can share that with the devs?
