Skip to content

SyntaxError: Unexpected identifier 'WATERLOO' #3

Description

@naveenchandrab

VERSION:
1.4.7

COMMAND
file-directives AUTOMATION,$ENV_BUNDLE_NAME node_modules,cross-platform-images true

ERROR STACK

> reco-returns@11.28.0 env:automation
> file-directives AUTOMATION,$ENV_BUNDLE_NAME node_modules,cp-images true

/Users/naveenchandrab/fck/reco
------------------------------- Directive Processing Started -------------------------------
#folder job:  /Users/naveenchandrab/fck/reco
$file:  /Users/naveenchandrab/fck/reco/Utils/FDPUtil.js
$file:  /Users/naveenchandrab/fck/reco/Utils/automation/AutomationTestUtill.ts
   !-excluded:  /Users/naveenchandrab/fck/reco/cp-images
$file:  /Users/naveenchandrab/fck/reco/cross-platform-modules/MWModules.ts
   !-excluded:  /Users/naveenchandrab/fck/reco/node_modules
undefined:1
def WATERLOO
    ^^^^^^^^

SyntaxError: Unexpected identifier 'WATERLOO'
    at DirectiveHelper.checkDirective (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/DirectiveHelper.js:48:21)
    at FileProcessor.processInternalAndReturnText (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FileProcessor.js:46:49)
    at FileProcessor.processDirectivesAndGetText (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FileProcessor.js:10:40)
    at FolderProcessor.<anonymous> (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FolderProcessor.js:19:46)
    at Array.forEach (<anonymous>)
    at FolderProcessor.processFolderAndCreate (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FolderProcessor.js:15:15)
    at FolderProcessor.<anonymous> (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FolderProcessor.js:35:26)
    at Array.forEach (<anonymous>)
    at FolderProcessor.processFolderAndCreate (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FolderProcessor.js:15:15)
    at FolderProcessor.<anonymous> (/Users/naveenchandrab/fck/reco/node_modules/file-directives/DirectiveProcessor/FolderProcessor.js:35:26)

Node.js v20.9.0

Tried downgrading to 1.4.6. It didn't work. It wasn't throwing error. But it is not commenting/uncommenting the code

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions