I'm getting this annoying error everytime I refresh a page in my rails 5 app. I need underscore.js for gmaps4rails. This underscore.js file is at vendor/javascript/underscore.js, like the tutorial says ( Gmaps4Rails Github repo ).
Does anyone have a good solution to solve or supress it?
to solve this issue, i do it:
1) copy code of underscore-min.map ( link is here ) into a file which i renamed underscore-min.map
and place it into assets pipeline (assets/javascripts)
2) in underscore-min.map, replace underscore-min.js
by underscore.js
3) in underscore.js
, uncomment last line ( sourceMappingURL=underscore-min.map
)
It work for me. i hope it'll be help you too.
您应该添加.map文件,或删除JS中调用该文件的行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.