Error: ./node_modules/cls-hooked/context.js
Module not found: Error: Can't resolve 'async_hooks'
After adding the applicationinsights package, I am getting the above error in my application.
I have added it by using this syntax require('applicationinsights')
. I believe the problem lies in the require
keyword. I tried every other internet answer related to this error but nothing worked.