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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 New module ds-icons can not be used with typescript #1394

Closed
1 task done
glennverschooren opened this issue May 3, 2024 · 1 comment
Closed
1 task done

🐛 New module ds-icons can not be used with typescript #1394

glennverschooren opened this issue May 3, 2024 · 1 comment
Assignees
Labels
🐛 bug Something isn't working

Comments

@glennverschooren
Copy link

glennverschooren commented May 3, 2024

Current Behavior

import React from 'react'

import { useBaloiseDesignSystem, BalApp } from '@baloise/ds-react'
import { balIconStarFull } from '@baloise/ds-icons' => Module '"@baloise/ds-icons"' has no exported member 'balIconStarFull'.ts(2305)

export default function App() {
  useBaloiseDesignSystem({
    defaults: {
      icons: { balIconStarFull },
    },
  })

  return <BalApp>...</BalApp>
}

Expected Behavior

ballconStartFull is known as an exported member by Typescript.

Steps to Reproduce

  1. Import baloise icon

Version

16.1.0

Browsers

No response

Device

No response

Code Reproduction URL

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@glennverschooren glennverschooren added the 🐛 bug Something isn't working label May 3, 2024
@hirsch88 hirsch88 self-assigned this May 8, 2024
@hirsch88
Copy link
Member

Hi @glennverschooren , just created a new react app with create-react-app with typescript and it worked.
could clear your rpm cache or remove the node_modules folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants