Exception: SewingKit::Webpack::Manifest::NodeSewingKitManifestMissing
- Inherits:
-
StandardError
- Object
- StandardError
- SewingKit::Webpack::Manifest::NodeSewingKitManifestMissing
- Defined in:
- lib/sewing_kit/webpack/manifest.rb
Instance Method Summary collapse
-
#initialize(mode, node_error_message) ⇒ NodeSewingKitManifestMissing
constructor
A new instance of NodeSewingKitManifestMissing.
Constructor Details
#initialize(mode, node_error_message) ⇒ NodeSewingKitManifestMissing
Returns a new instance of NodeSewingKitManifestMissing.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sewing_kit/webpack/manifest.rb', line 10 def initialize(mode, ) = if 'production' == mode "\nIf this is a container build:\n" \ " - Verify that sewing_kit compilation succeeded before deployment\n" \ " - Verify that public/bundles/sewing-kit.manifest.json was uploaded\n" \ " - Verify that public/bundles/sewing-kit.manifest.json exists in the container\n" \ else "\nPossible next steps:\n" \ " - If the server is still starting up, wait for a 'Compiled with latest changes' message" \ " then refresh your browser\n" \ " - Check the development console for compilation errors\n" \ " - Restart your development server\n" end super( "Could not fetch the sewing-kit manifest 🙀 " \ "#{env_message}\n" \ "Original error #{node_error_message}" ) end |