weixin_39625586的博客
- 于 2017-07-26 加入CSDN
-
获得1次点赞
-
内容获得0次评论
-
获得22次收藏
- 最近
- 文章
- 资源
- 问答
- 课程
- 帖子
- 收藏
- 关注/订阅




I created a plugin, but I only get state.pos
if parser is just after colons in test/test.js.
Plugin: lib/index.js
Current output replaces the URLs two characters before it's expected position:
html
<p>There's a new issue at GitHub<a href="https://github.com/jonschlinkert/remarkable/issues/117" target="_blank" class="github-issue"><i class="fa fa-github"></i>jonschlinkert/remarkable#117</a>17</p>

This problem is funny.
The gem webpacker will check if the yarn was installed. check code. The yarn that webpacker want to check is JS yarn, install by https://yarnpkg.com/en/docs/install.
But if you add the gem 'yarn' in your Gemfile, there will be a binary named yarn installed after bundle install. The gem yarn's binary has the same name of JS yarn. When the check code execute, it may find the gem yarn's binary first in the .RVM path, which is wrong binary for webpacker.
So, find the binary named 'yarn' in the bin paths for gems, then remove all of them.
