Search code examples
angularbulma

when installing bulma css with angular module is not found


I am trying to startup Angular using ng serve command.

And I immediately run into the following issue

ERROR in multi ./src/styles.scss ../node_modules/bulma/css/bulma.css Module not found: Error: Can't resolve 'C:\client\node_modules\bulma\css\bulma.css' in 'C:\client\ngpop'

I can confirm that the bulma.css exists in the location.

Any ideas


Solution

  • I think you forgot to add "node_modules/bulma/css/bulma.css" angular.json file style array like below

    Angular 6 and above Add like below in angular.json file under styles array.

        "styles": [
    
             "node_modules/bulma/css/bulma.css",
        ]
    

    Angular 2/4/5 you can add like below in angular-cli.json file under styles array

    "styles": [
      "../node_modules/bulma/css/bulma.css",
    ]
    

    Hope this will help