[RUBY] Uncaught Error: Cannot find module Comment out if you get'bootstrap-form'

Memorandum for yourself

environment

Delete the administrator from the administrator list screen Then the following error appears on the browser.

Unknown action The action 'show' could not be found for Administrator::AdminsController

Comes out. Why show ??

I checked controller, view, and path, but there was no problem.

If you check the error log on the web developer console,

Uncaught Error: Cannot find module 'bootstrap-form'
    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

Confirm that an error has occurred in the bootstrap-form module.

in app / javascript / packs / application.js import 'bootstrap-form'; Comment out.

After checking the operation, it was successfully deleted.

Recommended Posts

Uncaught Error: Cannot find module Comment out if you get'bootstrap-form'