Module not found: Error: Cannot resolve module 'semantic-ui-css' Module not found: Error: Cannot resolve module 'semantic-ui-css' vue.js vue.js

Module not found: Error: Cannot resolve module 'semantic-ui-css'


If you came here trying to use 'semantic-ui-react' you need to install 'semantic-ui-css' seperatly to grab the css files:

yarn add semantic-ui-css

and then import it in the index.js

import 'semantic-ui-css/semantic.min.css';


All you have to do:

css: import 'semantic-ui-css/semantic.css';

js: import 'semantic-ui-css/semantic.js';

This solves my problem with webpack and react.


To use 'semantic-ui-react' you need to install 'semantic-ui-css' npm add semantic-ui-cssthen you need to import the css file into 'index.js' file.

import 'semantic-ui-css/semantic.min.css';