1

I'm developing an angular ssr application. When I do npm run dev:ssr I'm getting the following error

Your NodeJS application doesn't support 'perf_hooks'. TypeError: mod.require is not a function 
A server error has occurred.
node exited with 1 code.
connect ECONNREFUSED 127.0.0.1:54208

I don't know what is causing me this error? Can some one help me to solve this? Thank you.

1 Answer 1

1

Are you using ngx-skeleton-loader? All versions > 2.2.1 are using perf_hooks through the perf-marks package.

I reverted to 2.2.1. And will try to find a different solution for loader-skeletons.

Sign up to request clarification or add additional context in comments.

2 Comments

Yes i'm using but version is 2.2.0
Are you sure? Do you have have a wildcard in the package.json?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.