Prevent MUI Popper TypeError (#739)
Vite chunking can cause "Uncaught TypeError: styled_default is not a function at Popper.js:14:20"
This commit is contained in:
@@ -27,6 +27,9 @@ export default defineConfig(() => ({
|
|||||||
'@': path.resolve(__dirname, './src'),
|
'@': path.resolve(__dirname, './src'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
optimizeDeps: {
|
||||||
|
include: ['@mui/material/Tooltip'],
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
viteTsconfigPaths(),
|
viteTsconfigPaths(),
|
||||||
|
|||||||
Reference in New Issue
Block a user