Skip to main content

URGENT! How do I solve the following error?

Rails • Asked by Ananya Singh
I am trying to run a test using rspec and I am getting the following error. Please help.

ReactOnRails: Set generated_assets_dir to default: public/webpack/development
rake aborted!
NameError: undefined local variable or method `webpack' for main:Object

There are some fixes for this issue here: https://github.com/shakacode/react_on_rails/issues/956

Are any of these helpful to you?

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.