Skip to content

Invalid regular expression when linking IO app #345

@marcelomd

Description

@marcelomd

Today, 2020-02-26 we wanted to update our app and were unable to link it.

Expected Behavior

App should link without errors.

Current Behavior

App errors with the following message:

helles:io> vtex link --verbose
16:13:44.687 - debug: Toolbelt version: 2.89.0  
16:13:44.693 - debug: node v13.8.0 - linux 5.3.0-40-generic  
16:13:44.694 - debug:  [ 'link', '--verbose' ]  
...
16:14:37.573 - debug: Starting app code service-node@3.5.7  
16:14:38.387 - error: SyntaxError: Invalid regular expression: /\(\(\((?<context>(.)*)\)\)\)/: Invalid group
    at Object.<anonymous> (/usr/local/data/service/node_modules/@vtex/api/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.js:6:23)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/data/service/node_modules/@vtex/api/lib/service/worker/runtime/graphql/schema/schemaDirectives/index.js:9:26)
    at Module._compile (module.js:652:30) service-node@3.5.7  
16:14:38.388 - error: App failed to start. Will not attempt to restart. service-node@3.5.7 

Steps to Reproduce (for bugs)

Just link the application.

Your Environment

Toolbelt version: 2.89.0
node v13.8.0 - linux 5.3.0-40-generic
Ubuntu linux 18.04

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions