Yarn webiny deploy error


#1

Hi,

I have installed everything locally following instructions. First deployment ran correctly without any issues.

However, after working for a while on the website, modified theme, added category and a new page, I tried to run deploy again but it fails with the following error:

 $ yarn webiny deploy
yarn run v1.16.0
$ '/net-webiny/node_modules/.bin/webiny' deploy

> Deploying api (/net-webiny/packages/api)
ℹ Running build...
$ cross-env NODE_ENV=production webpack --config=webpack.config.js --progress
module.js:550
    throw err;
    ^

Error: Cannot find module '..'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/net-webiny/packages/api/node_modules/.bin/cross-env:4:16)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
webiny deploy [name]

Deploy an app or a function by name. If no name is specified, all apps and
functions will be deployed.

Positionals:
  name  Package name to deploy (optional)

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
  --ci       Set this flag when running in a CI environment.
                                                      [boolean] [default: false]

TypeError: format.replace is not a function
    at formatString (/net-webiny/node_modules/webiny-cli/lib/logger.js:14:20)
    at Object.error (/net-webiny/node_modules/webiny-cli/lib/logger.js:26:27)
    at Deploy.deployPackage (/net-webiny/node_modules/webiny-cli/lib/deploy/index.js:193:19)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
error Command failed with signal "SIGINT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I am stuck and no idea how to move forward. Please give me some directions on how to resolve or investigate the problem.

Artur