stack icon indicating copy to clipboard operation
stack copied to clipboard

Bug: import error when using stack auth library

Open shandheap opened this issue 1 year ago • 3 comments

Hi Stack Auth team, we are currently using Stack Auth on our web application however I have noticed that stack auth ui has an import error which currently shows up on every page render:

[1] Import trace for requested module:
[1] ./node_modules/@stackframe/stack-ui/dist/components/simple-tooltip.js
[1] ./node_modules/@stackframe/stack-ui/dist/index.js
[1] ./node_modules/@stackframe/stack-ui/dist/components/action-dialog.js
[1]  GET /clients?_rsc=18tmw 200 in 414ms
[1]  ⚠ ./node_modules/@stackframe/stack-ui/dist/components/simple-tooltip.js
[1] Attempted import error: 'CircleAlert' is not exported from 'lucide-react' (imported as 'CircleAlert')

Looking at the codebase, there are two places where CircleAlert is imported from lucide-react even though this library does not export the CircleAlert component:

  • https://github.com/stack-auth/stack/blob/1232d2b26cdcf443d4253384edf63eaf39be4a0a/packages/stack-ui/src/components/simple-tooltip.tsx#L2
  • https://github.com/stack-auth/stack/blob/1232d2b26cdcf443d4253384edf63eaf39be4a0a/packages/stack-ui/src/components/action-dialog.tsx#L3

Would appreciate a fix on Stack Auth so that this error message doesn't show up on our frontend.

shandheap avatar Dec 26 '24 18:12 shandheap

Can you share your package.json and the output of npm list?

N2D4 avatar Dec 28 '24 16:12 N2D4

Apologies @N2D4 for the delay, just saw this update.

Here's the package.json

Output of npm list: npm-list-output.txt

shandheap avatar Jan 10 '25 20:01 shandheap

@N2D4 Any update on this?

shandheap avatar Jan 29 '25 06:01 shandheap