Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS4023: Exported variable 'X' has or is using name 'ToasterProps' from external module './node_modules/sonner/dist/index' but cannot be named. #399

Closed
Sam-Apostel opened this issue Apr 9, 2024 · 0 comments 路 Fixed by #400

Comments

@Sam-Apostel
Copy link
Contributor

Describe the feature / bug 馃摑:

Library authors that want to use Sonner can get this typescript error in specific scenario's.

TS4023: Exported variable 'X' has or is using name 'ToasterProps' from external module './node_modules/sonner/dist/index' but cannot be named

Steps to reproduce the bug 馃攣:

  1. set "decleration": true in tsconfig.
  2. style Sonner using Styled components.
  3. export styled Sonner.
import styled from "styled-components";
import { Toaster as Sonner } from "sonner";

const Toaster = styled(Sonner)``;

export const Styled = { Toaster };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant