You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to our build-pipeline we can't use require to include the module. Using require it would't get bundled into the final build.
If we try to use import (import * as MatomoTracker from "matomo-tracker"; ) we can bundle it correctly but it throws an error on runtime: TypeError: Vn is not a constructor
Is there anything we can do?
Thanks a lot
The text was updated successfully, but these errors were encountered:
VsCode displays an error related to the construct signature, but except from that it seems to work! (from the first tests)
Now importing it via import MatomoTracker from "matomo-tracker";
The TS-Error in VsCode:
This expression is not constructable.
Type 'typeof import("/Users/dominic/Code/_directus-extensions/directus-extension-application-monitoring/node_modules/matomo-tracker/index")' has no construct signatures.ts(2351)
michael-scheurer
added a commit
to michael-scheurer/matomo-nodejs-tracker
that referenced
this issue
Nov 27, 2022
Due to our build-pipeline we can't use
require
to include the module. Using require it would't get bundled into the final build.If we try to use import (
import * as MatomoTracker from "matomo-tracker";
) we can bundle it correctly but it throws an error on runtime:TypeError: Vn is not a constructor
Is there anything we can do?
Thanks a lot
The text was updated successfully, but these errors were encountered: