In one of my requirement I have to reference https://c64.file in SharePoint Framework WebPart to display the yammer feeds. But the file is not available in npm and typings are also not available.
As the TypeScript typings is not available for yammerfile, we can’t use import * as yammer from the external settings. Instead, we should use require(‘yammer’).
Also yam is a global object, so we have to change the way we reference it to (window as any).yam.connect.embedFeed() instead of (yam as any).connect.embedFeed()
Thank you Waldek Mastykarz for this suggestion.
Check the below example