babel / website

:globe_with_meridians: The Babel documentation website
https://babeljs.io/docs/en/index.html
MIT License
751 stars 1.31k forks source link

Adding RecordAndTuple syntax throws error on REPL #2224

Open JLHwung opened 4 years ago

JLHwung commented 4 years ago

Link: https://babeljs.io/repl#?browsers=chrome%2080&build=&builtIns=false&spec=false&loose=false&code_lz=MQbwjANABATAvkA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=true&sourceType=script&lineWrap=false&presets=env&prettier=false&targets=Node-13&version=7.9.0&externalPlugins=%40babel%2Fplugin-syntax-record-and-tuple%407.9.0

Adding syntax-record-and-tuple plugin will throw

'recordAndTuple' requires 'syntaxType' option whose value should be one of: 'hash', 'bar'
babel-bot commented 4 years ago

Hey @JLHwung! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

jcubic commented 2 years ago

How to use tuples and records in REPL?

nicolo-ribaudo commented 2 years ago

For now you can use https://rickbutton.github.io/record-tuple-playground/