clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
1.12k stars 246 forks source link

`@clerk/clerk-js` doesn't work since 4.45.0 #1381

Closed sapphi-red closed 1 year ago

sapphi-red commented 1 year ago

Package + Version

Dependencies + versions

With Vite: https://stackblitz.com/edit/vitejs-vite-s5nvkp?file=main.js With Webpack: https://stackblitz.com/edit/webpack-webpack-js-org-mchzxo?file=src%2Findex.js

Browser/OS

N/A

Description

import Clerk from '@clerk/clerk-js';
console.log(Clerk) // undefined

The default export of @clerk/clerk-js is undefined.

According to the README and the type definition the default export should have a non-undefined value. https://github.com/clerkinc/javascript/blob/main/packages/clerk-js/README.md#install-clerkjs-as-es-module https://cdn.jsdelivr.net/npm/@clerk/clerk-js@4.48.0/dist/types/index.d.ts

It doesn't work with Vite nor Webpack. It worked until 4.44.0 and doesn't work from 4.45.0.

clerk-cookie commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.