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
I'm trying to use your library and I have a question.
I'm using this documentation to set up sampling, but I ran into a problem.
I'm getting an ERR_MODULE_NOT_FOUND error on import { sampleByDistinctId } from posthog-js/lib/src/customisations, and when I looked into it, the files built in that path are being served like ESM (using import, export), and I'm guessing that the module isn't being found because it's missing the ‘.js’ at the end of the file I'm importing.
Can you tell me why the module is being served like this?
Hello, Posthog team!
I'm trying to use your library and I have a question.
I'm using this documentation to set up sampling, but I ran into a problem.
I'm getting an
ERR_MODULE_NOT_FOUND
error onimport { sampleByDistinctId } from posthog-js/lib/src/customisations
, and when I looked into it, the files built in that path are being served like ESM (using import, export), and I'm guessing that the module isn't being found because it's missing the ‘.js’ at the end of the file I'm importing.Can you tell me why the module is being served like this?
e.g.
The text was updated successfully, but these errors were encountered: