question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remix experimental cloudflare pages

See original GitHub issue

Package + Version

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/clerk-expo
  • @clerk/backend-core
  • @clerk/clerk-sdk-node
  • @clerk/edge
  • other:

Version:

1.4.0-staging.4

Browser/OS

If applicable e.g. Chrome latest

Description

I want to get the User object within a loader. So i used import {clerk} from "@clerk/remix/experimental/api.server".

I receive following error:

Error: Missing Clerk API Key. Go to https://dashboard.clerk.dev and get your Clerk API Key for your instance.
...

I think it is related to follwing file. https://github.com/clerkinc/javascript/blob/f6ef89d301f72efa3d1b1151162d6d17629c64f9/packages/remix/src/experimental/clerk.ts#L5

it works in the rootAuthLoader because there the variable is read from the context object.

Am i missing something?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SokratisVidroscommented, Nov 29, 2022

You are right. We need to fix this tomorrow.

0reactions
SokratisVidroscommented, Dec 5, 2022

Scratch that, I just saw it says CF pages in the title of the issue. Anyway, I just pushed a PR that should fix this. https://github.com/clerkinc/javascript/pull/593

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy a Remix site · Cloudflare Pages docs
In this guide, you will create a new Remix application and deploy to Cloudflare Pages. ​​ Setting up a new project. Start by...
Read more >
Experiments with Remix and Cloudflare Workers - Medium
After building and maintaining single page applications I have grown to miss server side functionality for front-end logic.
Read more >
Serverless Remix Sessions with Cloudflare Pages
Using sessions with Remix is a pretty straightforward task. Usually, you put your session data into a...
Read more >
Speed Run: Deploying Remix on Cloudflare Pages - YouTube
Deploying a Remix app on Cloudflare Pages is incredibly fast and simple. In just 7:15 I was able to create the app, connect...
Read more >
Tag Archives: Full Stack - Noise
Remix is the second framework to integrate natively with full stack Cloudflare Pages, following SvelteKit, which was available at launch. But this is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found