New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server side rendering "TypeError: Reflect$1.getOwnMetadata is not a function" #7476
Comments
Guys, I see this is an actual angular cli bug? Any idea how can I fix it temporarily? |
Hello, any updates on this? Appreciate the support. |
@hansl appreaciate if you can give us a date estimate for this fix. |
@hansl @ruyfortini Is there any temporary way around this bug? Anything at all I can do just to load my site somewhere? |
@hansl @ruyfortini Quick update, I only get this error if I try to include this plugin: https://github.com/mujtaba01/ngx-owl-carousel. I assume that's not related to the bug but is instead a universal thing? |
same problem with universal |
I get this error message building an universal project without angular-cli, so I guess it is rather a platform-server issue. |
I think it is because you are using a dependency that uses methods not supported in node: In your case is 'angular2-text-mask' |
At server level you need to include a reflect polyfill such as Please take a look at this story https://github.com/angular/angular-cli/wiki/stories-universal-rendering and this starter https://github.com/angular/universal-starter/blob/master/server.ts#L2 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.3.1
node: 7.10.1
os: darwin x64
Repro steps.
Following the docs in https://github.com/angular/angular-cli/blob/1.3.x/docs/documentation/stories/universal-rendering.md
I get
Not sure if it's a angular bug, but I followed all the steps mentioned in the docs. Any help?
The text was updated successfully, but these errors were encountered: