Skip to content

Monaco Editor causes ClerkJS to fail loading #1643

@jonrose-dev

Description

@jonrose-dev
  • I have reviewed the documentation
  • I have searched for existing issues
  • I have ensured I am on the most recent version, and checked the changelog for that version
  • I have provided the Frontend API key from my application dashboard: pk_test_c21hcnQtdGV0cmEtNi5jbGVyay5hY2NvdW50cy5kZXYk
  • I have provided a minimal reproduction or replay recording below

When the monaco editor (@monaco-editor/react) is rendered on app start, Clerk fails to load.

Minimal Reproduction or Replay

  • Add the monaco Editor in the app.jsx
import Editor from "@monaco-editor/react";

...

  <Editor language="JSON" />
  • Minimal reproduction repo here
  • Delaying the loading of the Editor allows Clerk to load without issue, the issue is when the Editor and Clerk attempt to load at the same time
Screenshot 2023-08-28 at 4 38 06 PM

Browser/OS

Chrome 116, Node 16.13

Package + Version

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore
  • other:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingclerk-jsprioritizedThis issue has been triaged and the team is working on it

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions