Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

ignite g navigator ... "Cannot read property 'length' of undefined" #248

Closed
zucchinho opened this issue Aug 27, 2019 · 1 comment · Fixed by #262
Closed

ignite g navigator ... "Cannot read property 'length' of undefined" #248

zucchinho opened this issue Aug 27, 2019 · 1 comment · Fixed by #262
Labels
bug Something isn't working released

Comments

@zucchinho
Copy link

What's going on?

CLI is throwing a TypeError after the first prompt when running "ignite g navigator navName".

Steps to reproduce

At prompt type "ignite g navigator navName"
When prompted for "What type of navigator do you want to create?" select any option,

An error is thrown before the second prompt:
TypeError: Cannot read property 'length' of undefined

navigator.js:134 Command.run
[golden.ucas.hub.mobileapp]/[ignite-bowser]/commands/generate/navigator.js:134:25

next_tick.js:68 process._tickCallback
internal/process/next_tick.js:68:7

ignite doctor results:

System
platform win32

arch x64
cpu 8 cores Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
directory ..

JavaScript
node 10.16.2 C:\Program Files\nodejs\node.EXE
npm 6.9.0 C:\Program Files\nodejs\npm.CMD
yarn 1.17.3 C:\Users{name}\AppData\Roaming\npm\yarn.CMD

React Native
react-native-cli 2.0.1
app rn version 0.60.4

Ignite
ignite-cli 3.1.6 C:\Users{name}\AppData\Local\Yarn\bin\ignite.CMD
generators {}
createdWith 3.1.6
boilerplate ignite-bowser
boilerplateVersion 4.6.2

Android
java - C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot\bin\java.EXE
android home - C:\Users{name}\AppData\Local\Android\Sdk

@robinheinze robinheinze added the bug Something isn't working label Oct 7, 2019
infinitered-circleci pushed a commit that referenced this issue Oct 7, 2019
## [4.7.2](v4.7.1...v4.7.2) (2019-10-07)

### Bug Fixes

* **generators:** Fixes [#248](#248), ignite generate navigator ([#262](#262) by [@osrl](https://github.com/osrl)) ([f178b2a](f178b2a))
@infinitered-circleci
Copy link

🎉 This issue has been resolved in version 4.7.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants