TypeError: Object doesn't support this property or method

后端 未结 8 1427
梦如初夏
梦如初夏 2021-01-05 20:53

I have created rails application where I created a database (empty). When I try to view my products page, I receive the following error on my http://localhost:3000/products

相关标签:
8条回答
  • 2021-01-05 21:36

    Upon careful research this is the solution I stumbled upon. Just make sure you have the latest version of NodeJs installed. After installing NodeJs, make sure you restart our system. However it is very important that you update your windows OS. You should be fine. If you are using RubyMine everything should work by now. No need to be troubling your head over the coffee-script issue. The ExecJs Program error seem to be more related to the NodeJs and its associated modules.

    0 讨论(0)
  • 2021-01-05 21:42

    For me,solution was to remove-

     <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload'%>
     <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    

    from

    app\views\layout\application.html.erb

    0 讨论(0)
提交回复
热议问题