Skip to content

Error using replace-x 1.7.2 in package.json node 10.16.0 #4

@ghwrivas

Description

@ghwrivas

in package json build command:

"ng-build": ng build --configuration=qa --project="app-web" --base-href=./ && replace-x 'ABC' 'XYZ' dist/app/index.html",

Error
fs.js:114
throw err;
^

Error: ENOENT: no such file or directory, lstat 'XYZ'
at Object.lstatSync (fs.js:845:3)
at replaceFileSync (/home/develop/repos/node_modules/replace-x/dist/replace-x.js:217:31)
at Array.forEach ()
at replace (/home/develop/repos/node_modules/replace-x/dist/replace-x.js:266:14)
at Object. (/home/develop/repos/node_modules/replace-x/bin/replace-x.js:42:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

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