GithubHelp home page GithubHelp logo

clerk / clerk-nextjs-pages-quickstart Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 5.0 484 KB

The official companion repo for Clerk's Next.js Quickstart using the pages router

JavaScript 8.85% TypeScript 67.33% CSS 23.82%
auth authentication clerk nextjs pages-dir react

clerk-nextjs-pages-quickstart's People

Contributors

domitriusclark avatar emmanouelapothitou avatar jacobmgevans avatar royanger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clerk-nextjs-pages-quickstart's Issues

Clerk publishable token is not being parsed correctly

Hello,

Thanks for the example, however I fail to successfully run the project using the instructions provided. I am using an Ubuntu distro (22.04) with Nodejs v18.19.x and by doing the following,

  • cloning the repository
  • adding a .env.local in the root folder with the required variables as fetched from Clerk's dashboard, and finally doing,
  • npm install && npm run dev

I get the following error:

➜  clerk-nextjs-pages-quickstart git:(main) ✗ npm install

up to date, audited 393 packages in 994ms

119 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
➜  clerk-nextjs-pages-quickstart git:(main) ✗ npm run dev

> [email protected] dev
> next dev

   ▲ Next.js 14.0.4
   - Local:        http://localhost:3000
   - Environments: .env.local

 ✓ Ready in 2.7s
 ✓ Compiled /src/middleware in 428ms (281 modules)
 ⨯ node_modules/@clerk/shared/dist/chunk-5DRMPUGE.mjs (175:12) @ Object.throwMissingPublishableKeyError
 ⨯ @clerk/backend: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.
null
 ○ Compiling /_error ...

Obviously, I cannot provide the keys that I've put in my .env.local but they were pasted as-is from the dashboard. What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.