We've moved discussions to Discord

Webpack cant find 'stylesheets/application' after TailwindUI 2 merge

Brian Carpenter
Merged in changes for TailwindUI 2.0.  Site loads but the CSS is broken.  Rolled back the changes and the problem still persists.

application.js:1 Uncaught Error: Cannot find module 'stylesheets/application'
    at webpackMissingModule (application.js:1)
    at Module../app/javascript/packs/application.js (application.js:1)
    at __webpack_require__ (bootstrap:19)
    at bootstrap:83
    at bootstrap:83

Found this solution in the forum but it did not work for me.

Does anyone have any ideas about what the issue might be?



Brian Carpenter
After a bunch of trial and error and reading the web about related problems, these steps fixed my issue.

rails tmp:clear
rails webpacker:install
rails tmp:clear


And, restarting the server between each command.  

I guess something was cached that just needed to get flushed out. 


Notifications
You’re not receiving notifications from this thread.