Skip to main content

Main navigation

  • Home
  • About me
  • Github
  • StackExchange
  • Drupal.org

Fix error in styles.scss class does not exist. Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):

I had this error on a Typescript Angular project, where my Tailwind css could not be compiled every time I created a new component in my angular cli.

I was able to fix it:

Put 

chmod -R 777 * 

as access rights on your node_modules folder.

 

Thanks to this user:  https://stackoverflow.com/a/54033562/3280710

Tags
TypeScript
Tailwind css
Angular

Follow me here

Other snippets

Render a button in drupal 8 & 9 with a render array

Render arrays are great for styling elements to keep consistency across future updates. Today: buttons.
Read more about Render a button in drupal 8 & 9 with a render array

Check if a form is an entityForm

EntityForms are gaining importance in drupal 8 and 9. This is how to make sure you are in one.
Read more about Check if a form is an entityForm

Change label and description of a revision log field in drupal 8 and 9

Revisions are a great thing for tracking changes between entities. This snippets allows you to name them different in your entity forms.
Read more about Change label and description of a revision log field in drupal 8 and 9

Redirect anonymous users to login form in drupal 8 & 9

An often use case for dashboards or software behind a login is to redirect anonymous users to the login page. Like always, I do not want to use contributed modules for this.
Read more about Redirect anonymous users to login form in drupal 8 & 9

Overwrite input colors in Tailwind custom forms plugin

Tailwind custom forms is a great plugin to quickly theme your form elements. This snippet guides you through some set-up.
Read more about Overwrite input colors in Tailwind custom forms plugin

Drupal 9: the power of core and object-oriented code in practice

drupal 9 book

My course about drupal 9 is almost out! Want to get a notice when ready?

Subscribe

contact: vanlooverenstef at gmail dot com