Skip to content

Capybara and webpacker problem #301

Closed
@arrowcircle

Description

@arrowcircle

Hi! I just tried to use fresh 5.1 rails app with capybara and got error:

Failure/Error: = javascript_pack_tag    'application'

     ActionView::Template::Error:
       Can't find application.js in /****/public/packs/manifest-test.json. Is webpack still compiling?
...
...
# --- Caused by: ---
     # Webpacker::FileLoader::NotFoundError:
     #   Can't find application.js in /***/public/packs/manifest-test.json. Is webpack still compiling?
     #   /***/bundler/gems/webpacker-56bd687798b6/lib/webpacker/manifest.rb:21:in `lookup'

webpack dev server is running.

It looks like rails cant find application.js in test environment, but how to find the solution for this problem?

Development env is working ok.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions