question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.3.34 is causing hermes compilation issues

See original GitHub issue

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

Authentication, Analytics, GraphQL API, Storage, Push Notifications

Amplify Categories

auth, storage, function, api, analytics, notifications

Environment information


  System:
    OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Memory: 5.83 GB / 30.99 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
    Watchman: 4.9.0 - /usr/bin/watchman
  Browsers:
    Chrome: 104.0.5112.101
    Firefox: 104.0
  npmPackages:
    @aws-amplify/analytics: ^5.1.0 => 5.2.19 
    @aws-amplify/api: ^4.0.20 => 4.0.52 
    @aws-amplify/auth: ^4.3.10 => 4.6.5 
    @aws-amplify/core: ^4.3.2 => 4.7.3 
    @aws-amplify/datastore: 3.12.9 => 3.12.9 
    @aws-amplify/geo: 1.3.15 => 1.3.15 
    @aws-amplify/interactions: 4.1.0 => 4.1.0 
    @aws-amplify/predictions: 4.0.52 => 4.0.52 
    @aws-amplify/xr: 3.0.52 => 3.0.52 
    @aws-sdk/client-cognito-identity: ^3.100.0 => 3.163.0 (3.6.1)
    @aws-sdk/client-cognito-identity-provider: ^3.55.0 => 3.163.0 
    @aws-sdk/client-dynamodb: ^3.36.0 => 3.163.0 
    @aws-sdk/client-iam: ^3.100.0 => 3.163.0 
    @aws-sdk/client-s3: ^3.162.0 => 3.163.0 (3.6.1)
    @aws-sdk/client-secrets-manager: ^3.55.0 => 3.163.0 
    @aws-sdk/credential-provider-sso: ^3.162.0 => 3.163.0 (3.31.0, 3.48.0)
    @aws-sdk/util-dynamodb: ^3.36.0 => 3.163.0 
    @babel/cli: ^7.15.7 => 7.18.10 
    @babel/core: ^7.15.8 => 7.18.13 (7.12.9, 7.18.10, 7.18.6, 7.18.5)
    @babel/eslint-parser: ^7.15.8 => 7.18.9 
    @babel/plugin-proposal-decorators: ^7.17.2 => 7.18.10 (7.18.2)
    @babel/preset-env: ^7.15.8 => 7.18.10 (7.18.2)
    @babel/preset-typescript: ^7.16.7 => 7.18.6 (7.17.12)
    @babel/runtime: ^7.15.4 => 7.18.9 (7.7.2, 7.5.5)
    @faker-js/faker: ^7.0.1 => 7.5.0 
    @googlemaps/polyline-codec: ^1.0.21 => 1.0.28 
    @hookform/resolvers: ^2.8.8 => 2.9.7 
    @hookform/resolvers/ajv:  1.0.0 
    @hookform/resolvers/class-validator:  1.0.0 
    @hookform/resolvers/computed-types:  1.0.0 
    @hookform/resolvers/io-ts:  1.0.0 
    @hookform/resolvers/joi:  1.0.0 
    @hookform/resolvers/nope:  1.0.0 
    @hookform/resolvers/superstruct:  1.0.0 
    @hookform/resolvers/typanion:  1.0.0 
    @hookform/resolvers/vest:  1.0.0 
    @hookform/resolvers/yup:  1.0.0 
    @hookform/resolvers/zod:  1.0.0 
    @notifee/react-native: ^6.0.0-0 => 6.0.0-0 
    @nozbe/watermelondb: ^0.24.0 => 0.24.0 
    @nozbe/with-observables: ^1.4.0 => 1.4.1 (1.4.0)
    @react-native-async-storage/async-storage: ^1.15.11 => 1.17.10 
    @react-native-community/netinfo: ^9.0.0 => 9.3.0 
    @react-native-community/slider: ^4.2.3 => 4.3.1 
    @react-native-firebase/app: ^14.0.0 => 14.11.1 
    @react-native-firebase/messaging: ^14.0.0 => 14.11.1 
    @react-native-masked-view/masked-view: ^0.2.6 => 0.2.7 
    @react-navigation/drawer: ^6.3.1 => 6.4.4 
    @react-navigation/native: ^6.0.5 => 6.0.12 
    @react-navigation/stack: ^6.0.10 => 6.2.3 
    @sentry/cli: 2.5.2 => 2.5.2 (1.74.4, 1.74.5)
    @sentry/react-native: 5.0.0-alpha.2 => 5.0.0-alpha.2 
    @storybook/addon-actions: ^6.4.9 => 6.5.10 
    @storybook/addon-docs: ^6.5.10 => 6.5.10 
    @storybook/addon-essentials: ^6.4.9 => 6.5.10 
    @storybook/addon-interactions: ^6.4.9 => 6.5.10 
    @storybook/addon-links: ^6.4.9 => 6.5.10 
    @storybook/addon-react-native-web: ^0.0.18 => 0.0.18 
    @storybook/builder-webpack5: ^6.4.9 => 6.5.10 
    @storybook/manager-webpack5: ^6.4.9 => 6.5.10 
    @storybook/react: ^6.4.9 => 6.5.10 
    @storybook/testing-library: ^0.0.13 => 0.0.13 
    @stripe/stripe-react-native: 0.18.1 => 0.18.1 
    @tanstack/query-core: ^4.2.3 => 4.2.3 
    @tsconfig/react-native: ^2.0.0 => 2.0.2 
    @types/color: ^3.0.2 => 3.0.3 
    @types/google.maps: ^3.49.2 => 3.50.0 
    @types/qrcode: ^1.4.2 => 1.5.0 
    @types/react-native: ^0.69.1 => 0.69.6 
    @types/react-native-get-random-values: ^1.8.0 => 1.8.0 
    @types/react-native-vector-icons: ^6.4.10 => 6.4.12 
    @types/react-native-version-check: ^3.4.4 => 3.4.4 
    @types/sort-json: ^2.0.1 => 2.0.1 
    @types/uuid: ^8.3.4 => 8.3.4 
    @typescript-eslint/eslint-plugin: ^5.12.1 => 5.36.1 
    @typescript-eslint/parser: ^5.12.1 => 5.36.1 
    @welldone-software/why-did-you-render: ^7.0.0 => 7.0.1 
    HelloWorld:  0.0.1 
    amazon-cognito-identity-js: ^5.2.10 => 5.2.10 
    appcenter-cli: ^2.10.9 => 2.11.0 
    aws-amplify: 4.3.34 => 4.3.34 
    babel-jest: ^29.0.0 => 29.0.1 
    babel-loader: ^8.2.2 => 8.2.5 
    babel-plugin-module-resolver: ^4.1.0 => 4.1.0 
    babel-plugin-react-native-web: ^0.18.1 => 0.18.9 
    chalk: ^4 => 4.1.2 (2.4.2, 5.0.1)
    chromatic: ^6.3.4 => 6.8.1 
    color: ^4.1.0 => 4.2.3 
    countries-list: ^2.6.1 => 2.6.1 
    country-currency-emoji-flags: ^1.0.9 => 1.0.9 
    cross-fetch: ^3.1.5 => 3.1.5 
    cross-fetch-polyfill:  0.0.0 
    currency-symbol-map: ^5.1.0 => 5.1.0 
    dayjs: ^1.10.7 => 1.11.5 
    eslint: ^8.9.0 => 8.23.0 
    eslint-config-airbnb: 19.0.4 => 19.0.4 
    eslint-config-airbnb-typescript: ^17.0.0 => 17.0.0 
    eslint-import-resolver-alias: ^1.1.2 => 1.1.2 
    eslint-plugin-import: ^2.25.2 => 2.26.0 
    eslint-plugin-jsx-a11y: ^6.4.1 => 6.6.1 
    eslint-plugin-react: ^7.26.1 => 7.31.1 
    eslint-plugin-react-hooks: ^4.2.1-alpha-ebf9ae857-20211101 => 4.6.0 
    eslint-plugin-react-native: ^4.0.0 => 4.0.0 
    eslint-plugin-security-node: ^1.0.14 => 1.1.1 
    eslint-plugin-storybook: ^0.6.0 => 0.6.4 
    expect-telnet: ^1.0.0 => 1.0.0 
    fuse.js: ^6.6.2 => 6.6.2 (3.4.5)
    glob: ^8.0.1 => 8.0.3 (7.2.3, 7.1.6, 7.2.0)
    google-libphonenumber: ^3.2.25 => 3.2.30 
    hermes-inspector-msggen:  1.0.0 
    iso-3166-1: ^2.1.1 => 2.1.1 
    jest: ^29.0.0 => 29.0.1 
    jotai: ^1.3.9 => 1.8.2 
    metro-react-native-babel-preset: ^0.72.1 => 0.72.1 (0.70.3)
    minisearch: ^5.0.0 => 5.0.0 
    native-base: ^3.4.13 => 3.4.13 
    patch-package: ^6.4.7 => 6.4.7 
    postinstall-postinstall: ^2.1.0 => 2.1.0 
    qrcode: ^1.5.1 => 1.5.1 
    query-string: ^7.1.1 => 7.1.1 
    react: 18.2.0 => 18.2.0 (17.0.2)
    react-dom: ^18.2.0 => 18.2.0 
    react-hook-form: ^7.28.0 => 7.34.2 
    react-native: 0.69.5 => 0.69.5 
    react-native-animated-pagination-dots: ^0.1.72 => 0.1.72 
    react-native-bootsplash: ^4.0.0 => 4.3.2 
    react-native-branch: ^5.5.0 => 5.5.0 
    react-native-calendars: ^1.1288.1 => 1.1288.2 
    react-native-clean-project: ^4.0.0 => 4.0.1 
    react-native-code-push: ^7.0.4 => 7.0.5 
    react-native-codegen: ^0.71.0 => 0.71.0 (0.69.2)
    react-native-contacts: ^7.0.4 => 7.0.5 
    react-native-country-picker-modal: ^2.0.0 => 2.0.0 
    react-native-date-picker: ^4.1.0 => 4.2.5 
    react-native-device-info: ^10.0.0 => 10.0.2 
    react-native-dotenv: ^3.2.0 => 3.3.1 
    react-native-geolocation-service: ^5.3.0-beta.3 => 5.3.0 
    react-native-gesture-handler: ^2.3.1 => 2.6.0 
    react-native-get-random-values: ^1.8.0 => 1.8.0 
    react-native-image-crop-picker: ^0.38.0 => 0.38.0 
    react-native-keyboard-aware-scroll-view: ^0.9.5 => 0.9.5 
    react-native-linear-gradient: ^2.5.6 => 2.6.2 
    react-native-localize: ^2.1.5 => 2.2.3 
    react-native-logs: ^5.0.0 => 5.0.1 
    react-native-maps: ^1.1.0 => 1.3.1 
    react-native-pager-view: ^5.4.6 => 5.4.25 
    react-native-permissions: ^3.4.0 => 3.6.1 
    react-native-reanimated: ^2.9.1 => 2.10.0 
    react-native-safe-area-context: ^4.1.2 => 4.3.3 
    react-native-screens: 3.15.0 => 3.15.0 
    react-native-svg: ^13.0.0 => 13.1.0 (12.4.4)
    react-native-url-polyfill: ^1.3.0 => 1.3.0 
    react-native-vector-icons: ^9.0.0 => 9.2.0 
    react-native-version-check: ^3.4.2 => 3.4.3 
    react-native-web: ^0.18.1 => 0.18.9 
    react-test-renderer: 18.2.0 => 18.2.0 
    sort-json: ^2.0.1 => 2.0.1 
    storybook-addon-jotai: ^0.0.6 => 0.0.6 
    storybook-docs-toc: ^1.6.0 => 1.7.0 
    storybook-react-context: ^0.6.0 => 0.6.0 
    ts-node: ^10.7.0 => 10.9.1 
    typescript: ^4.5.5 => 4.8.2 
    uuid: ^8.3.2 => 8.3.2 (3.4.0, 3.3.2, 7.0.3)
    webpack: ^5.58.1 => 5.74.0 (4.46.0)
    webpack-cli: ^4.9.0 => 4.10.0 (4.9.2)
    yup: ^0.32.11 => 0.32.11 
    yup-phone: ^1.2.19 => 1.3.2 
  npmGlobalPackages:
    aws-cdk: 2.24.1
    corepack: 0.10.0
    gladly: 1.0.0
    npm: 8.5.5
    yarn: 1.22.18



Describe the bug

When building for code push on react native (likely a standard build but I haven’t tested that yet) When trying to compile the bytecode the error in the logs section below appears.

I’m pretty sure this is related to #10217 where Lexv2 support was brought in.

Which is pulling in @aws-sdk/client-lex-runtime-v2/node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js

Whch is pulling in

 "@aws-sdk/client-lex-runtime-v2": "3.31.0",                                                                                                                                                                                                                                                                                                                                       

That version was released in Sept 2021 and predates this bug https://github.com/aws/aws-sdk-js-v3/issues/2832

Expected behavior

App compiles fine

Reproduction steps

  1. Create a plain react-native app
  2. Enable hemres
  3. Add amplify
  4. Add codepush
  5. Use appcenter command above

Code Snippet

// Put your code below this line.

Log output

``` yarn run v1.22.18 $ /home/johnf/work/gladly/mobile/node_modules/.bin/appcenter codepush release-react --app gladly/mobile-android --deployment-name dev --target-binary-version 0.92.0 --sourcemap-output --output-dir ./build --description 0.92.6 Running "react-native bundle" command:

node node_modules/.bin/react-native bundle --assets-dest build/CodePush --bundle-output build/CodePush/index.android.bundle --dev false --entry-file index.js --platform android --sourcemap-output build/CodePush/index.android.bundle.map Welcome to Metro! Fast - Scalable - Integrated

info Writing bundle output to:, build/CodePush/index.android.bundle info Writing sourcemap output to:, build/CodePush/index.android.bundle.map info Done writing bundle output info Done writing sourcemap output info Copying 68 asset files info Done copying assets Converting JS bundle to byte code via Hermes, running command:

node_modules/react-native/sdks/hermesc/linux64-bin/hermesc -emit-binary -out build/CodePush/index.android.bundle.hbc build/CodePush/index.android.bundle -output-source-map -w build/CodePush/index.android.bundle:3037:623: error: Invalid regular expression: Quantifier has nothing to repeat __d(function(g,r,i,a,m,e,d){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0}),e.parseEpochTimestamp=e.parseRfc7231DateTime=e.parseRfc3339DateTime=e.dateToUtcString=void 0;var t=[“Sun”,“Mon”,“Tue”,“Wed”,“Thu”,“Fri”,“Sat”],n=[“Jan”,“Feb”,“Mar”,“Apr”,“May”,“Jun”,“Jul”,“Aug”,“Sep”,“Oct”,“Nov”,“Dec”];e.dateToUtcString=function(u){var o=u.getUTCFullYear(),s=u.getUTCMonth(),c=u.getUTCDay(),p=u.getUTCDate(),f=u.getUTCHours(),T=u.getUTCMinutes(),l=u.getUTCSeconds(),v=p<10?“0”+p:“”+p,y=f<10?“0”+f:“”+f,h=T<10?“0”+T:“”+T,M=l<10?“0”+l:“”+l;return t[c]+“, “+v+” “+n[s]+” “+o+” “+y+”:”+h+“:”+M+" GMT"};var u=new RegExp(/^(?<Y>\d{4})-(?<M>\d{2})-(?<D>\d{2})tT😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))?[zZ]$/);e.parseRfc3339DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-3339 date-times must be expressed as strings”);var n=u.exec(t);if(!n||!n.groups)throw new TypeError(“Invalid RFC-3339 date-time value”);var o=(0,r(d[0]).strictParseShort)(D(n.groups.Y)),s=M(n.groups.M,“month”,1,12),c=M(n.groups.D,“day”,1,31);return p(o,s,c,n)}};var o=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (?<D>\d{2}) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<Y>\d{4}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),s=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (?<D>\d{2})-(?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(?<Y>\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),c=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<D> [1-9]|\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? (?<Y>\d{4})$/);e.parseRfc7231DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-7231 date-times must be expressed as strings”);var n=function(t){return M(t,“day”,1,31)},u=function(t){return(0,r(d[0]).strictParseShort)(D(t))},v=function(t){return t},y=o.exec(t);if(!y||!y.groups)if((y=s.exec(t))&&y.groups)u=f,v=T;else{if(!(y=c.exec(t))||!y.groups)throw new TypeError(“Invalid RFC-7231 date-time value”);n=function(t){return M(t.trimLeft(),“day”,1,31)}}var h=u(y.groups.Y),w=l(y.groups.M),C=n(y.groups.D);return v(p(h,w,C,y))}};e.parseEpochTimestamp=function(t){if(null!==t&&void 0!==t){var n;if(“number”==typeof t)n=t;else{if(“string”!=typeof t)throw new TypeError(“Epoch timestamps must be expressed as floating point numbers or their string representation”);n=(0,r(d[0]).strictParseDouble)(t)}if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError(“Epoch timestamps must be valid, non-Infinite, non-NaN numerics”);return new Date(Math.round(1e3n))}};var p=function(t,n,u,o){var s=n-1;return y(t,s,u),new Date(Date.UTC(t,s,u,M(o.groups.H,“hour”,0,23),M(o.groups.m,“minute”,0,59),M(o.groups.s,“seconds”,0,60),w(o.groups.frac)))},f=function(t){var n=(new Date).getUTCFullYear(),u=100Math.floor(n/100)+(0,r(d[0]).strictParseShort)(D(t));return u<n?u+100:u},T=function(t){return t.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t},l=function(t){var u=n.indexOf(t);if(u<0)throw new TypeError(“Invalid month: “+t);return u+1},v=[31,28,31,30,31,30,31,31,30,31,30,31],y=function(t,u,o){var s=v[u];if(1===u&&h(t)&&(s=29),o>s)throw new TypeError(“Invalid day for “+n[u]+” in “+t+”: “+o)},h=function(t){return t%4==0&&(t%100!=0||t%400==0)},M=function(t,n,u,o){var s=(0,r(d[0]).strictParseByte)(D(t));if(s<u||s>o)throw new TypeError(n+” must be between “+u+” and “+o+”, inclusive”);return s},w=function(t){return null===t||void 0===t?0:1e3*(0,r(d[0]).strictParseFloat32)(“0.”+t)},D=function(t){for(var n=0;n<t.length-1&&“0”===t.charAt(n);)n++;return 0===n?t:t.slice(n)}},3031,[3029]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/CodePush/index.android.bundle:3037:1112: error: Invalid regular expression: Quantifier has nothing to repeat __d(function(g,r,i,a,m,e,d){“use strict”;Object.defineProperty(e,”__esModule”,{value:!0}),e.parseEpochTimestamp=e.parseRfc7231DateTime=e.parseRfc3339DateTime=e.dateToUtcString=void 0;var t=[“Sun”,“Mon”,“Tue”,“Wed”,“Thu”,“Fri”,“Sat”],n=[“Jan”,“Feb”,“Mar”,“Apr”,“May”,“Jun”,“Jul”,“Aug”,“Sep”,“Oct”,“Nov”,“Dec”];e.dateToUtcString=function(u){var o=u.getUTCFullYear(),s=u.getUTCMonth(),c=u.getUTCDay(),p=u.getUTCDate(),f=u.getUTCHours(),T=u.getUTCMinutes(),l=u.getUTCSeconds(),v=p<10?“0”+p:“”+p,y=f<10?“0”+f:“”+f,h=T<10?“0”+T:“”+T,M=l<10?“0”+l:“”+l;return t[c]+“, “+v+” “+n[s]+” “+o+” “+y+”:”+h+“:”+M+" GMT"};var u=new RegExp(/^(?<Y>\d{4})-(?<M>\d{2})-(?<D>\d{2})tT😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))?[zZ]$/);e.parseRfc3339DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-3339 date-times must be expressed as strings”);var n=u.exec(t);if(!n||!n.groups)throw new TypeError(“Invalid RFC-3339 date-time value”);var o=(0,r(d[0]).strictParseShort)(D(n.groups.Y)),s=M(n.groups.M,“month”,1,12),c=M(n.groups.D,“day”,1,31);return p(o,s,c,n)}};var o=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (?<D>\d{2}) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<Y>\d{4}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),s=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (?<D>\d{2})-(?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(?<Y>\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),c=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<D> [1-9]|\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? (?<Y>\d{4})$/);e.parseRfc7231DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-7231 date-times must be expressed as strings”);var n=function(t){return M(t,“day”,1,31)},u=function(t){return(0,r(d[0]).strictParseShort)(D(t))},v=function(t){return t},y=o.exec(t);if(!y||!y.groups)if((y=s.exec(t))&&y.groups)u=f,v=T;else{if(!(y=c.exec(t))||!y.groups)throw new TypeError(“Invalid RFC-7231 date-time value”);n=function(t){return M(t.trimLeft(),“day”,1,31)}}var h=u(y.groups.Y),w=l(y.groups.M),C=n(y.groups.D);return v(p(h,w,C,y))}};e.parseEpochTimestamp=function(t){if(null!==t&&void 0!==t){var n;if(“number”==typeof t)n=t;else{if(“string”!=typeof t)throw new TypeError(“Epoch timestamps must be expressed as floating point numbers or their string representation”);n=(0,r(d[0]).strictParseDouble)(t)}if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError(“Epoch timestamps must be valid, non-Infinite, non-NaN numerics”);return new Date(Math.round(1e3n))}};var p=function(t,n,u,o){var s=n-1;return y(t,s,u),new Date(Date.UTC(t,s,u,M(o.groups.H,“hour”,0,23),M(o.groups.m,“minute”,0,59),M(o.groups.s,“seconds”,0,60),w(o.groups.frac)))},f=function(t){var n=(new Date).getUTCFullYear(),u=100Math.floor(n/100)+(0,r(d[0]).strictParseShort)(D(t));return u<n?u+100:u},T=function(t){return t.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t},l=function(t){var u=n.indexOf(t);if(u<0)throw new TypeError(“Invalid month: “+t);return u+1},v=[31,28,31,30,31,30,31,31,30,31,30,31],y=function(t,u,o){var s=v[u];if(1===u&&h(t)&&(s=29),o>s)throw new TypeError(“Invalid day for “+n[u]+” in “+t+”: “+o)},h=function(t){return t%4==0&&(t%100!=0||t%400==0)},M=function(t,n,u,o){var s=(0,r(d[0]).strictParseByte)(D(t));if(s<u||s>o)throw new TypeError(n+” must be between “+u+” and “+o+”, inclusive”);return s},w=function(t){return null===t||void 0===t?0:1e3*(0,r(d[0]).strictParseFloat32)(“0.”+t)},D=function(t){for(var n=0;n<t.length-1&&“0”===t.charAt(n);)n++;return 0===n?t:t.slice(n)}},3031,[3029]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/CodePush/index.android.bundle:3037:1300: error: Invalid regular expression: Quantifier has nothing to repeat __d(function(g,r,i,a,m,e,d){“use strict”;Object.defineProperty(e,”__esModule”,{value:!0}),e.parseEpochTimestamp=e.parseRfc7231DateTime=e.parseRfc3339DateTime=e.dateToUtcString=void 0;var t=[“Sun”,“Mon”,“Tue”,“Wed”,“Thu”,“Fri”,“Sat”],n=[“Jan”,“Feb”,“Mar”,“Apr”,“May”,“Jun”,“Jul”,“Aug”,“Sep”,“Oct”,“Nov”,“Dec”];e.dateToUtcString=function(u){var o=u.getUTCFullYear(),s=u.getUTCMonth(),c=u.getUTCDay(),p=u.getUTCDate(),f=u.getUTCHours(),T=u.getUTCMinutes(),l=u.getUTCSeconds(),v=p<10?“0”+p:“”+p,y=f<10?“0”+f:“”+f,h=T<10?“0”+T:“”+T,M=l<10?“0”+l:“”+l;return t[c]+“, “+v+” “+n[s]+” “+o+” “+y+”:”+h+“:”+M+" GMT"};var u=new RegExp(/^(?<Y>\d{4})-(?<M>\d{2})-(?<D>\d{2})tT😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))?[zZ]$/);e.parseRfc3339DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-3339 date-times must be expressed as strings”);var n=u.exec(t);if(!n||!n.groups)throw new TypeError(“Invalid RFC-3339 date-time value”);var o=(0,r(d[0]).strictParseShort)(D(n.groups.Y)),s=M(n.groups.M,“month”,1,12),c=M(n.groups.D,“day”,1,31);return p(o,s,c,n)}};var o=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (?<D>\d{2}) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<Y>\d{4}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),s=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (?<D>\d{2})-(?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(?<Y>\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),c=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<D> [1-9]|\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? (?<Y>\d{4})$/);e.parseRfc7231DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-7231 date-times must be expressed as strings”);var n=function(t){return M(t,“day”,1,31)},u=function(t){return(0,r(d[0]).strictParseShort)(D(t))},v=function(t){return t},y=o.exec(t);if(!y||!y.groups)if((y=s.exec(t))&&y.groups)u=f,v=T;else{if(!(y=c.exec(t))||!y.groups)throw new TypeError(“Invalid RFC-7231 date-time value”);n=function(t){return M(t.trimLeft(),“day”,1,31)}}var h=u(y.groups.Y),w=l(y.groups.M),C=n(y.groups.D);return v(p(h,w,C,y))}};e.parseEpochTimestamp=function(t){if(null!==t&&void 0!==t){var n;if(“number”==typeof t)n=t;else{if(“string”!=typeof t)throw new TypeError(“Epoch timestamps must be expressed as floating point numbers or their string representation”);n=(0,r(d[0]).strictParseDouble)(t)}if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError(“Epoch timestamps must be valid, non-Infinite, non-NaN numerics”);return new Date(Math.round(1e3n))}};var p=function(t,n,u,o){var s=n-1;return y(t,s,u),new Date(Date.UTC(t,s,u,M(o.groups.H,“hour”,0,23),M(o.groups.m,“minute”,0,59),M(o.groups.s,“seconds”,0,60),w(o.groups.frac)))},f=function(t){var n=(new Date).getUTCFullYear(),u=100Math.floor(n/100)+(0,r(d[0]).strictParseShort)(D(t));return u<n?u+100:u},T=function(t){return t.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t},l=function(t){var u=n.indexOf(t);if(u<0)throw new TypeError(“Invalid month: “+t);return u+1},v=[31,28,31,30,31,30,31,31,30,31,30,31],y=function(t,u,o){var s=v[u];if(1===u&&h(t)&&(s=29),o>s)throw new TypeError(“Invalid day for “+n[u]+” in “+t+”: “+o)},h=function(t){return t%4==0&&(t%100!=0||t%400==0)},M=function(t,n,u,o){var s=(0,r(d[0]).strictParseByte)(D(t));if(s<u||s>o)throw new TypeError(n+” must be between “+u+” and “+o+”, inclusive”);return s},w=function(t){return null===t||void 0===t?0:1e3*(0,r(d[0]).strictParseFloat32)(“0.”+t)},D=function(t){for(var n=0;n<t.length-1&&“0”===t.charAt(n);)n++;return 0===n?t:t.slice(n)}},3031,[3029]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/CodePush/index.android.bundle:3037:1517: error: Invalid regular expression: Quantifier has nothing to repeat __d(function(g,r,i,a,m,e,d){“use strict”;Object.defineProperty(e,”__esModule”,{value:!0}),e.parseEpochTimestamp=e.parseRfc7231DateTime=e.parseRfc3339DateTime=e.dateToUtcString=void 0;var t=[“Sun”,“Mon”,“Tue”,“Wed”,“Thu”,“Fri”,“Sat”],n=[“Jan”,“Feb”,“Mar”,“Apr”,“May”,“Jun”,“Jul”,“Aug”,“Sep”,“Oct”,“Nov”,“Dec”];e.dateToUtcString=function(u){var o=u.getUTCFullYear(),s=u.getUTCMonth(),c=u.getUTCDay(),p=u.getUTCDate(),f=u.getUTCHours(),T=u.getUTCMinutes(),l=u.getUTCSeconds(),v=p<10?“0”+p:“”+p,y=f<10?“0”+f:“”+f,h=T<10?“0”+T:“”+T,M=l<10?“0”+l:“”+l;return t[c]+“, “+v+” “+n[s]+” “+o+” “+y+”:”+h+“:”+M+" GMT"};var u=new RegExp(/^(?<Y>\d{4})-(?<M>\d{2})-(?<D>\d{2})tT😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))?[zZ]$/);e.parseRfc3339DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-3339 date-times must be expressed as strings”);var n=u.exec(t);if(!n||!n.groups)throw new TypeError(“Invalid RFC-3339 date-time value”);var o=(0,r(d[0]).strictParseShort)(D(n.groups.Y)),s=M(n.groups.M,“month”,1,12),c=M(n.groups.D,“day”,1,31);return p(o,s,c,n)}};var o=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (?<D>\d{2}) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<Y>\d{4}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),s=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (?<D>\d{2})-(?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(?<Y>\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? GMT$/),c=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<D> [1-9]|\d{2}) (?<H>\d{2})😦?<m>\d{2})😦?\d{2})(?:.(?<frac>\d+))? (?<Y>\d{4})$/);e.parseRfc7231DateTime=function(t){if(null!==t&&void 0!==t){if(“string”!=typeof t)throw new TypeError(“RFC-7231 date-times must be expressed as strings”);var n=function(t){return M(t,“day”,1,31)},u=function(t){return(0,r(d[0]).strictParseShort)(D(t))},v=function(t){return t},y=o.exec(t);if(!y||!y.groups)if((y=s.exec(t))&&y.groups)u=f,v=T;else{if(!(y=c.exec(t))||!y.groups)throw new TypeError(“Invalid RFC-7231 date-time value”);n=function(t){return M(t.trimLeft(),“day”,1,31)}}var h=u(y.groups.Y),w=l(y.groups.M),C=n(y.groups.D);return v(p(h,w,C,y))}};e.parseEpochTimestamp=function(t){if(null!==t&&void 0!==t){var n;if(“number”==typeof t)n=t;else{if(“string”!=typeof t)throw new TypeError(“Epoch timestamps must be expressed as floating point numbers or their string representation”);n=(0,r(d[0]).strictParseDouble)(t)}if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError(“Epoch timestamps must be valid, non-Infinite, non-NaN numerics”);return new Date(Math.round(1e3n))}};var p=function(t,n,u,o){var s=n-1;return y(t,s,u),new Date(Date.UTC(t,s,u,M(o.groups.H,“hour”,0,23),M(o.groups.m,“minute”,0,59),M(o.groups.s,“seconds”,0,60),w(o.groups.frac)))},f=function(t){var n=(new Date).getUTCFullYear(),u=100Math.floor(n/100)+(0,r(d[0]).strictParseShort)(D(t));return u<n?u+100:u},T=function(t){return t.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t},l=function(t){var u=n.indexOf(t);if(u<0)throw new TypeError("Invalid month: "+t);return u+1},v=[31,28,31,30,31,30,31,31,30,31,30,31],y=function(t,u,o){var s=v[u];if(1===u&&h(t)&&(s=29),o>s)throw new TypeError(“Invalid day for “+n[u]+” in “+t+”: “+o)},h=function(t){return t%4==0&&(t%100!=0||t%400==0)},M=function(t,n,u,o){var s=(0,r(d[0]).strictParseByte)(D(t));if(s<u||s>o)throw new TypeError(n+” must be between “+u+” and “+o+”, inclusive”);return s},w=function(t){return null===t||void 0===t?0:1e3*(0,r(d[0]).strictParseFloat32)(“0.”+t)},D=function(t){for(var n=0;n<t.length-1&&“0”===t.charAt(n);)n++;return 0===n?t:t.slice(n)}},3031,[3029]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: Failed to release a CodePush update. error Command failed with exit code 3. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

</details>

### aws-exports.js

_No response_

### Manual configuration

_No response_

### Additional configuration

_No response_

### Mobile Device

_No response_

### Mobile Operating System

_No response_

### Mobile Browser

_No response_

### Mobile Browser Version

_No response_

### Additional information and screenshots

_No response_

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bensiecommented, Sep 20, 2022

Fix confirmed! 👍

2reactions
bensiecommented, Sep 7, 2022

Seeing this as well running our CI on GH Actions. In our case the failure happened on Android, but that might be because we haven’t yet enabled Hermes on iOS.

> Task :app:bundleReleaseJsAndAssets
                    Welcome to Metro!
              Fast - Scalable - Integrated


info Writing bundle output to:, /home/runner/work/mobile/mobile/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /home/runner/work/mobile/mobile/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 19 asset files
info Done copying assets
/home/runner/work/mobile/mobile/android/app/build/generated/assets/react/release/index.android.bundle:374591:28: error: Invalid regular expression: Quantifier has nothing to repeat
  var RFC3339 = new RegExp(/^(?<Y>\d***4***)-(?<M>\d***2***)-(?<D>\d***2***)[tT](?<H>\d***2***):(?<m>\d***2***):(?<s>\d***2***)(?:\.(?<frac>\d+))?[zZ]$/);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/mobile/mobile/android/app/build/generated/assets/react/release/index.android.bundle:374615:32: error: Invalid regular expression: Quantifier has nothing to repeat
  var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (?<D>\d***2***) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<Y>\d***4***) (?<H>\d***2***):(?<m>\d***2***):(?<s>\d***2***)(?:\.(?<frac>\d+))? GMT$/);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/mobile/mobile/android/app/build/generated/assets/react/release/index.android.bundle:374616:33: error: Invalid regular expression: Quantifier has nothing to repeat
  var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (?<D>\d***2***)-(?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(?<Y>\d***2***) (?<H>\d***2***):(?<m>\d***2***):(?<s>\d***2***)(?:\.(?<frac>\d+))? GMT$/);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/mobile/mobile/android/app/build/generated/assets/react/release/index.android.bundle:374617:29: error: Invalid regular expression: Quantifier has nothing to repeat
  var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?<M>Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?<D> [1-9]|\d***2***) (?<H>\d***2***):(?<m>\d***2***):(?<s>\d***2***)(?:\.(?<frac>\d+))? (?<Y>\d***4***)$/);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> Task :app:bundleReleaseJsAndAssets FAILED
Read more comments on GitHub >

github_iconTop Results From Across the Web

exhibit22managementwarra - SEC.gov
4.3.34 Other than the Mauritian Authorised Entities, no other Group Company ... to: 13.1.1 cause any Group Company, Joint Venture Company or Hermes...
Read more >
Draft SEIR Chapter 4.3 Biological Resources - Data Portal
one or more causes, including loss of habitat, change in habitat, overexploitation,. 9 predation, competition, disease, or other factors; or.
Read more >
Are Hermes taking the piss or is this normal? : r/CasualUK
In fact, it's often a small cause for celebration in my household when Hermes actually delivers on time without any issues.
Read more >
Guide 5th Edition, and ISO 21500
The Swiss Federal Strategy Unit for IT (FSUIT) the owner of the HERMES method. ... not project stages or phases) and project management...
Read more >
4.3 Biological Resources - City of Santee
butterfly (Lycaena hermes), and western spadefoot (Spea hammondii), ... 4.3-34. May 2020. Fanita Ranch Project. Santee General Plan.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found