'Fix SassError, relating to cannot find stylesheet when upgrading to webpacker version 5

After upgrading from webpacker version 4 to version 5.3.4, I am seeing the following error.

    Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "stylesheet/actiontext.scss"

 

How do I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source