Skip to content

ActionView::Template::Error (ReferenceError: Map is not defined) #853

@oiahoon

Description

@oiahoon

Actual behavior

while try to update react-rails from 1.5 to 2.3.4,
it seems there is a big change, i've no idea how to fix these problems.
I don't think i am the only person.

System configuration

Sprockets or Webpacker version: i just don't know how to check this
React-Rails version: 2.3.4
Rect_UJS version: i just don't know how to check this
Rails version: 5.1.4
Ruby version: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
Since I user docker-compose,
Dockerfile: FROM rails:onbuild


  1. upgrade rails to 5.1.4
  2. upgrade react-rails to 2.3.4
  3. bundle install
  4. modify the application.rb as you mentioned
  5. rails g react:install
  6. add prerender: true to my componet
  7. restart my docker container, then get error:
  8. below is the debug result by web-console,maybe some help:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions