skip to Main Content

Uncaught SyntaxError: Export 'import_react3' is not defined in module (at chunk-…) : import_react3 as import_react, – Reactjs

I have created my react js application using vite. and i am using npm. I installed material ui and my package.json file has these packages: "dependencies": { "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@mui/material": "^5.11.15", "@mui/styled-engine-sc": "^5.11.11", "@mui/x-data-grid": "^6.0.3", when i run…

VIEW QUESTION

Error 'Cannot use import statement outside a module ' while testing in Vite – Reactjs

I am working in a Vite project, my goal is to be able to write tests. So I setup Jest and Babel and write a test, but I'm getting an error like this: C:UsersjoaovOneDriveDev ProjetosProjetos pessoaiscsgo-e-commercenode_modulesfirebaseappdistindex.esm.js:1 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { registerVersion }…

VIEW QUESTION
Back To Top
Search