I have created a project using vite and react. I create a theme to set my project into right to left. Everything was ok and the project was running properly.
const theme = createTheme({
direction: 'rtl' ,
typography: {
"fontFamily": `"iransans"`,
"fontSize": 11,
"fontWeightLight": 300,
"fontWeightRegular": 400,
"fontWeightMedium": 500
}
})
const cacheRtl = createCache({
key: "muirtl",
stylisPlugins: [prefixer, rtlPlugin]
})
function App() {
let history = useHistory();
let contained = "Test The";
return (
<div className="App">
<Router>
<div>
<Switch>
<CacheProvider value={cacheRtl}>
<ThemeProvider theme={theme}>
<Route exact path="/applicant">
<Applicant />
</Route>
</ThemeProvider>
</CacheProvider>
</Switch>
</div>
</Router>
</div>
)
}
export default App
After I add a Slide component to my project. Suddenly my project stop working and the console is showing the
Box.js:5 Uncaught TypeError: createTheme_default is not a function at Box.js:5:22
I rollback my changes(by git checking). but the error is still showing.
I can't understand what's going on Why is the error still there after reverting the changes?
Box.js
– Caresa