skip to Main Content

When starting the project, reactstrap presents an error when importing the lib – Reactjs

Error console /node_modules/reactstrap/lib/index.js:1 import _Container from './Container'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1176:20) at Module._compile (node:internal/modules/cjs/loader:1218:27) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18)…

VIEW QUESTION

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
Back To Top
Search