Skip to content

webiny watch is dependent on temporary artifact #4084

@LeoDeJaneiro

Description

@LeoDeJaneiro

Version

5.38.2

Operating System

MacOS 13.6.2

Browser

No response

What are the steps to reproduce this bug?

  1. deploy, e.g. yarn webiny deploy --env prod
  2. remove file .webiny/workspaces/apps/api/Pulumi.yaml
  3. run develop command, e.g. yarn webiny watch --package admin --env prod --allowProduction

What is the expected behavior?

The development should work and not be dependent of any file within the .webiny folder.

What do you see instead?

webiny info: Running "hook-before-watch" hook...
webiny success: Hook "hook-before-watch" completed.
Watching admin package...
TypeError: Cannot read properties of null (reading 'region')
at modifier (/Users/repo/temp/CMS-webiny/node_modules/@webiny/serverless-cms-aws/createAdminAppConfig.ts:13:52)
at reduce (/Users/repo/temp/CMS-webiny/node_modules/@webiny/serverless-cms-aws/createReactAppConfig.ts:140:20)
at Array.reduce ()
at loadEnvVars (/Users/repo/temp/CMS-webiny/node_modules/@webiny/serverless-cms-aws/createReactAppConfig.ts:135:50)
at Object.watch (/Users/repo/temp/CMS-webiny/node_modules/@webiny/serverless-cms-aws/createReactAppConfig.ts:173:13)
at /Users/repo/temp/CMS-webiny/node_modules/@webiny/cli-plugin-deploy-pulumi/commands/watch/worker.js:47:31
at Object. (/Users/repo/temp/CMS-webiny/node_modules/@webiny/cli-plugin-deploy-pulumi/commands/watch/worker.js:52:3)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)

Additional information

No response

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions