Help us understand the problem. What is going on with this article?

ExecJS::RuntimeError SyntaxError: [stdin]:11:3: unexpected ifのエラー

More than 1 year has passed since last update.

エラーの概要

screenshot 2.png

home/indexにSyntaxError: [stdin]:11:3: unexpected if
が出た

解決法

coffeescrpitにcoffeescrpit以外のコードを書いていたことが原因らしい

room.coffee
エラー前
screenshot.pngscreenshot.png

エラー解決後

screenshot.png

参考文献
  https://teratail.com/questions/30240

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away