Closed iansan5653 closed 5 years ago
This is what's causing https://github.com/styleguidist/react-styleguidist/issues/1321
I tried to write a PR for this, but acorn-jsx
didn't start using the new acorn extending method until 5.0
, so I don't know how to make it work.
Closing because this is a bug that should actually be fixed in the acorn-jsx repo.
Buble is not compatible with
acorn^7.0.0
, as is correctly declared in the package.json. Normally this would be the end of it, but becauseacorn-jsx
is compatible withacorn^6.0.0 || ^7.0.0
, this causes Buble to fail ifacorn^7.0.0
exists anywhere whereacorn-jsx
can grab it as thenacorn-jsx
is using 7 and Buble wants to use 6.In other words, Buble claims to be compatible with
acorn-jsx^5.0.1
but is actually not and should instead sayacorn-jsx^4.1.1
, which is the most recent version ofacorn-jsx
that does not claim compatibility withacorn^7.0.0
.