-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use clarity-js start
or other methods
#408
Comments
I'm using
and use as following:
|
If you're interested in how the above configuration is derived, when you look at the tag If you hit that url directly you'll receive back some more JavaScript - but this time it'll have a preconfigured clarity configuration: !(function (c, l, a, r, i, t, y) {
... blah, blah, blah
})("clarity", document, window, "script", {
projectId: "<your_project_id>",
upload: "https://z.clarity.ms/collect", // <- you could reverse proxy this through your own domain
expire: 365,
cookies: ["_uetmsclkid", "_uetvid"],
track: true,
lean: false,
content: true,
report: "https://www.clarity.ms/report-err/eus2b",
dob: 1587,
delayDom: false,
}); Better living everyone, the lack of documentation is something to be desired - but this is the default configuration that MS runs on most installations. |
I tried that but getting the following error when I built my angular project. Any idea how to resolve the types?
|
When trying to use the NPM module
clarity-js
then importing it into a NextJS project for example:You cannot use any methods like
start()
. It results in an error:From the source code on GitHub, the library exports the clarity, version, and helper objects but there is no default export of a clarity object with a start method. The build process is using Rollup, but it's not clear if it's properly generating the .d.ts file from the TypeScript source. This looks like a package build issue leading to invalid TypeScript types.
The text was updated successfully, but these errors were encountered: