Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Error on hexa init --just=functions #15

@jackbravo

Description

@jackbravo

Describe the bug
I'm following the nitro guide. Everything worked ok until the hexa init --just=functions command which failed with:

✗ TypeError: Cannot convert undefined or null to object
    at Object.saveWorkspace (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/core/utils.js:283:22)
✗ Abort.
✗ TypeError: Cannot read property 'name' of undefined
    at /Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:63:76

To Reproduce
Just follow the nitro guide until the same step

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

This is the full dump of the command:

~/D/j/n/b/nitro (master|✚1…) $ hexa init --just=functions


 ██╗  ██╗ ███████╗ ██╗  ██╗  █████╗  
 ██║  ██║ ██╔════╝ ╚██╗██╔╝ ██╔══██╗ 
 ███████║ █████╗    ╚███╔╝  ███████║ 
 ██╔══██║ ██╔══╝    ██╔██╗  ██╔══██║ 
 ██║  ██║ ███████╗ ██╔╝ ██╗ ██║  ██║ 
 ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ ╚═╝  ╚═╝ 


? Configuration file found. Do you want to override it? false Yes
? Enter a name for the project: nest-nitro
✔ Checking for existing project nest-nitro...
✔ Bootstrapping project nest-nitro...
✔ Checking authorizations for project nest-nitro...
✔ Checking storage for project nest-nitro...
✔ Creating storage account nestnitro1592 (this may take few minutes)...
✔ Fetching a connection string for storage account nestnitro1592...
✗ TypeError: Cannot convert undefined or null to object
    at Object.saveWorkspace (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/core/utils.js:283:22)
    at /Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/storage/index.js:123:29
    at step (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/storage/index.js:33:23)
    at Object.next (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/storage/index.js:14:53)
    at fulfilled (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/storage/index.js:5:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)
✗ Abort.
✗ TypeError: Cannot read property 'name' of undefined
    at /Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:63:76
    at step (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:44:23)
    at Object.next (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:25:53)
    at /Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:19:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:15:12)
    at module.exports (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/features/functions/index.js:57:12)
    at /Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/commands/init.js:139:42
    at step (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/commands/init.js:33:23)
    at Object.next (/Users/jackbravo/.config/nvm/10.18.1/lib/node_modules/@manekinekko/hexa/build/commands/init.js:14:53)
✗ Abort.
✔ Configuration saved to /Users/jackbravo/Documents/js/nest-workspace/benchmarks/nitro/hexa.json
✔ Done in 193 seconds.

Desktop (please complete the following information):

  • OS: macOS 10.15.2
  • node: v10.18.1
  • hexa: 1.3.2

Additional context
Repo with all the code here: https://github.com/jackbravo/nest-azure

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions