Closed Rapter1990 closed 2 months ago
Are u using next js ?
@viclafouch Yeah, I use next.js
Here is the jest.config.js
shown below
module.exports = {
roots: ['<rootDir>/src'],
testMatch: [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
transpilePackages: ['mui-tel-input']
}
@viclafouch it didn't help me fix the issue.
I have a problem to import mui-tel-input in my typescript with React project.
I install it to my project through it.
yarn --cwd <my-project-folder> t add mui-tel-input
Here is the relevant part of the code shown below
I got this error shown below