skip to Main Content

Can't import with relative path – Reactjs

Please take a look at this project: react-markdown-editor-test The editor component can't import a subcomponent from relative path, e.g this import { light as lightTheme, dark as darkTheme } from "styles/theme"; results in error Module not found: Error: Can't resolve…

VIEW QUESTION

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