Skip to content

Cannot run without Posthog API key #4

Description

@alexfornuto

In order to evaluate your project I'd like to run it locally. I cannot do this in the current state:

❯ yarn dev                                           ✘ INT took  22s at  02:43:02 PM
yarn run v1.22.21
$ next dev
  ▲ Next.js 13.5.6
  - Local:        http://localhost:3000
  - Experiments (use at your own risk):
     · serverActions

 ✓ Ready in 1590ms
 ✓ Compiled /middleware in 1508ms (343 modules)
 ○ Compiling /(default)/page ...
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
 ✓ Compiled /(default)/page in 17.7s (2870 modules)
 ⨯ node_modules/posthog-node/lib/index.cjs.js (183:14) @ assert
 ⨯ Error: You must pass your PostHog project's api key.
    at eval (./app/utils.ts:54:28)
    at (rsc)/./app/utils.ts (/home/alex/repos/mangledbottles/screenlink/apps/web/.next/server/app/(default)/page.js:861:1)
    at __webpack_require__ (/home/alex/repos/mangledbottles/screenlink/apps/web/.next/server/webpack-runtime.js:33:43)
    at eval (page.tsx:23:65)
    at (rsc)/./app/(default)/page.tsx (/home/alex/repos/mangledbottles/screenlink/apps/web/.next/server/app/(default)/page.js:385:1)
    at Function.__webpack_require__ (/home/alex/repos/mangledbottles/screenlink/apps/web/.next/server/webpack-runtime.js:33:43)
    at async Promise.all (index 0)
    at async Promise.all (index 0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions