New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Expected atom at position 2 \p{Script_Ex #8951

satishmane opened this Issue Oct 31, 2018 · 2 comments


None yet
3 participants

satishmane commented Oct 31, 2018

Bug Report

Current Behavior

> babel . --out-dir dist

SyntaxError: Expected atom at position 2
    at bail (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1093:13)
    at parseTerm (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:486:9)
    at parseAlternative (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:457:21)
    at parseDisjunction (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:437:16)
    at parse (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1108:18)
    at rewritePattern (/home/shm/dpp-query-ws/node_modules/regexpu-core/rewrite-pattern.js:324:15)
    at PluginPass.RegExpLiteral (/home/shm/dpp-query-ws/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js:50:51)
    at newFn (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/visitors.js:193:21)
    at NodePath._call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:40:17)

Input Code

  • REPL or Repo link if applicable:
var your => (code) => here;

Expected behavior/code
Successful transpiled code

Babel Configuration (.babelrc, package.json, cli command)

"devDependencies": {
    "@babel/cli": "^7.1.2",
    "@babel/core": "^7.1.2",
    "@babel/node": "^7.0.0",
    "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
    "@babel/preset-env": "^7.1.0",
    "@babel/preset-flow": "^7.0.0",
    "nodemon": "^1.18.4"


module.exports = {
  "presets": ["@babel/preset-env","@babel/preset-flow"],
  "plugins": [


  • Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34]
  • Node/npm version: Node 8.12.0/npm 6.4.1
  • OS: Ubuntu 16.04.4 LTS
  • Monorepo
  • How you are using Babel: [e.g. cli, register, loader]
    "build": "babel . --out-dir dist"

This comment has been minimized.


babel-bot commented Oct 31, 2018

Hey @satishmane! 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.


This comment has been minimized.


nicolo-ribaudo commented Nov 4, 2018

Can you share a small example which reproduces the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment