Error out of nowhere: “Cannot invoke an expression whose type lacks a call signature. Type 'RaygunStatic' has no compatible call signatures.”


#1

Hi,
A build that was working 1 week ago is now not working with the exact same code…

Has something changed on the server?

I’m getting this error now when building in ionic pro:

Cannot invoke an expression whose type lacks a call signature. Type ‘RaygunStatic’ has no compatible call signatures.

On the following line:

rg4js(‘setUser’, {

at the top of my file I have

import * as rg4js from ‘raygun4js’;

A week ago, built fine, today doesn’t build. Nothing changed at all in git.

Can someone please help? Anything appreciated.

Cheers,
Rob