Skip to content

webpack not installed #2545

@avegancafe

Description

@avegancafe

Hey there! I just upgraded from webpacker 4.2.2 to 5.0.1 and when running bundle exec rake webpacker:compile I now get the error webpack not installed. I'm not sure what's changed, but I was hoping by using webpacker I did not need to install my own version of webpack, as it is declared as a production dependency of webpacker. Is there any solution to this when using yarn besides additionally adding webpack as a dependency of my application? This seems brittle, as they could easily get out of date with webpacker's internal version of webpack (even though it seems to not be getting installed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportQuestions or unspecific problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions