Relay: Optional Chaining

Created on 16 May 2018  路  6Comments  路  Source: facebook/relay

Parse error: SyntaxError: This experimental syntax requires enabling the parser plugin: 'optionalChaining' (68:33) in "components/CreateWeb.js"

Not sure why it happens, but babel-eslint has the same problem https://github.com/babel/babel-eslint/issues/595

Most helpful comment

yarn add relay@facebook/relay#master

version can be used as github/repo#commitsh-value
the commit it was downloaded is added to yarn.lock, so running yarn upgrade updates to latest revision from master.

All 6 comments

This is fixed on master I guess

@sibelius Is is possible to use Relay from master somehow easily?

yarn add relay@facebook/relay#master

version can be used as github/repo#commitsh-value
the commit it was downloaded is added to yarn.lock, so running yarn upgrade updates to latest revision from master.

@JCMais Sorry for of topic, but I wonder how it works? Is it yarn magic?

npm in reality, it can resolve to any package on github. But this is probably not going to work with relay, mainly because it's a monorepo, and does not store transpiled sources on GitHub

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janicduplessis picture janicduplessis  路  3Comments

leebyron picture leebyron  路  3Comments

MartinDawson picture MartinDawson  路  3Comments

piotrblasiak picture piotrblasiak  路  3Comments

sibelius picture sibelius  路  3Comments