Closed adnanebrahimi closed 2 years ago
Thank you, Adnan. Will you be able to send a dependency and deploy pipeline to reproduce? I'll try to reproduce and resolve this issue promptly
I fixed by changing an option in tsconfig to have correct import:
in tsconfig.json:
"allowSyntheticDefaultImports": true
in server.ts:
import isbot from 'isbot';
the wrong import was:
import * as isbot from 'isbot';
Thanks for your fast reply 👌
I see, thank you for responding. We do export default for historic reasons, I can see how this may be confusing.
Steps to reproduce
npm install isbot --save
in expressjs:
Expected behaviour
by browser loads webapp as CSR
by bot loads webapp as SSR
Actual behaviour
error occured:
TypeError: isbot_namespaceObject is not a function
Additional details
Angular Universal Version 13