Search code examples
npmwebpackflatui

Module not found when using flat-ui with webpack


I want to use flat-ui with webpack when installed with npm. I have created a test project. The last commit is before installing flat-ui. When I do install and use

require('flat-ui');

I get the error:

Module not found: Error: Cannot resolve module 'flat-ui'

In my research I found this gist but am not familiar enough with webpack to understand it well enough.

My goal is to use npm to install dependencies rather than clutter up my project.


Solution

  • 'flat-ui' npm package is not official package. This package provides old version. ( issue )

    You need to install 'designmodo-flat-ui' package.