Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when installing bulma css with angular module is not found

Tags:

angular

bulma

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

like image 585
jhon.smith Avatar asked Aug 05 '26 06:08

jhon.smith


1 Answers

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

like image 89
TheParam Avatar answered Aug 07 '26 19:08

TheParam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!