Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Crash on Vercel app #59

@dev-andremonteiro

Description

@dev-andremonteiro

Versions

"plausible-tracker": "^0.3.8"

Describe the bug

After deployment with a vercel app, the hole app crashes and I get the error in the logs:

Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: PTracker is not a function","reason":{"errorType":"TypeError","errorMessage":"PTracker is not a function","stack":["TypeError: PTracker is not a function","    at file:///var/task/vercel/path0/dist/chunks/pages/index_187a88b5.mjs:247:19","    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: PTracker is not a function","    at process.<anonymous> (file:///var/runtime/index.mjs:1276:17)","    at process.emit (node:events:529:35)","    at process.emit (node:domain:489:12)","    at emit (node:internal/process/promises:149:20)","    at processPromiseRejections (node:internal/process/promises:283:27)","    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"]}

Any idea of the reason we are getting this error ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions