Error in Node modules - mdbreact installed from npm


Topic: Error in Node modules - mdbreact installed from npm

ashokp989 asked 9 months ago

Expected behavior Trying to use MDBDataTable from mdbreact . I am using Arcgis Js api with Webpack in my project.

Actual behavior Getting errors as "ERROR in ./node_modules/react-transition-group/esm/CSSTransition.js Module not found: Error: Can't resolve 'dom-helpers/addClass' in ... "

Resources (screenshots, code snippets etc.)

Please find the error screenshot below

enter image description here

My code screenshot below enter image description here

My project structure screenshot below enter image description here

enter image description here


Piotr Glejzer staff commented 9 months ago

This is not the best answer but did you try reinstall node_modules again?


ashokp989 answered 8 months ago

Hi.. Yes I installed node modules again and after writing the following lines in webpack.config.js, the above error is gone. alias: { mdbreact: path.resolve('./src/index') }

But i am still getting the following error Uncaught TypeError: Cannot read property 'length' of undefined at createDom (maquette.umd.js:242)

enter image description here


Piotr Glejzer staff commented 8 months ago

This is a another library, we don't use a maquette so I don't know how to help you with that. Do you have an error when you are using only our components, without other dependencies?


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: React
  • MDB Version: 4.27.0
  • Device: hp
  • Browser: Google chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No