Topic: MDBReact npm run build - failing

patascis free asked 7 years ago


I didn't alter any of the core files. I looked around for a solution but I couldn't find any specific to mdbreact. Many of the similar threads regarding "Module not found" were focusing on webpack.config.js . I attempted a few of the "solutions" found online but all failed. When I run 'npm run build', I get the following error: ==============================
Failed to compile.

Module not found: Error: Can't resolve 'mdbreact' in 'C:Userspatascisnode_modulesmdbreactsrccomponents'

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mdbreact@4.0.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdbreact@4.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
============================== If anyone has a solution, that would be great. Thank you in advance.  

Bartłomiej Malanowski staff commented 7 years ago

Thanks for letting us know. I'll take a look and then I'll answer your question

Mikołaj Smoleński staff answered 6 years ago


Hi there, Which version of Node and Yarn do You use in Your project? Best Regards

rberlanda free answered 6 years ago


também se aplica na versão 4.7.0.  Alguma solução?

patascis free answered 7 years ago


...This error also applies to a fresh install of mdbreact 4.0.0.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags