Vitest -> This name has already been registered in the registry. #6824
Unanswered
WhiteTiburon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run a test that imports an external library, I get this error:
NotSupportedError: This name has already been registered in the registry.
Once I remove the library the test works.
Here is an example of what I import:
import { ThemeProvider, createTheme } from '@mui/material/styles'
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'
import { parseISO } from 'date-fns'
import { RuxInput } from '@astrouxds/react'
import './DatePicker.scss'
The line that causes the issue is:
import { RuxInput } from '@astrouxds/react'
One I remove it and use another Input component, it works.
Any ideas on how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions