Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) #79

Open
Jack-Works opened this issue Feb 14, 2021 · 8 comments

Comments

@Jack-Works
Copy link

eshost --configure-jsvu

Using config "C:\Users\Jack\.eshost-config.json"
Configuring jsvu host with name "ChakraCore" (type "ch") at "C:\Users\Jack\.jsvu\chakra.cmd"
Host "ChakraCore" already exists
C:\Users\Jack\AppData\Roaming\npm\node_modules\eshost-cli\lib\host-manager.js:172
    ] = VU_HOST_DETAILS[vu][engine];
        ^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Object.exports.configureFromVersionUpdater (C:\Users\Jack\AppData\Roaming\npm\node_modules\eshost-cli\lib\host-manager.js:172:9)
    at Object.<anonymous> (C:\Users\Jack\AppData\Roaming\npm\node_modules\eshost-cli\bin\eshost.js:294:15)
@rwaldron
Copy link
Collaborator

There's not enough information here for me to act on. If you can provide the contents of the .jsvu config file, that would be helpful. Thanks.

@Jack-Works
Copy link
Author

~/.jsvu on my computer is a folder.

~/.jsvu/status.json

{
	"os": "win64",
	"engines": [
		"chakra",
		"hermes",
		"quickjs",
		"spidermonkey",
		"v8",
		"xs"
	],
	"chakra": "1.11.23",
	"hermes": "0.7.1",
	"spidermonkey": "84.0b2",
	"v8": "8.9.7",
	"xs": "10.4.0"
}

I have patched node_modules to add a try-catch on those failing lines and get my eshost configured.

@rwaldron
Copy link
Collaborator

npm install eshost-cli@7.6.1

Let me know if the issue still exists

@Jack-Works
Copy link
Author

sorry this still happens in 7.6.1

@Jack-Works
Copy link
Author

image

I guess you should check VU_HOST_DETAILS[vu][engine] too

@rwaldron
Copy link
Collaborator

npm install eshost-cli@7.6.2

Please confirm

@rwaldron
Copy link
Collaborator

Latest is now npm install eshost-cli@7.6.3

@Jack-Works
Copy link
Author

Using config "C:\Users\Jack\.eshost-config.json"
Configuring jsvu host with name "ChakraCore" (type "ch") at "C:\Users\Jack\.jsvu\chakra.cmd"
Configuring jsvu host with name "Hermes" (type "hermes") at "C:\Users\Jack\.jsvu\hermes.cmd"
C:\Users\Jack\AppData\Roaming\npm\pnpm-global\4\node_modules\.pnpm\registry.npmjs.org\eshost-cli@7.6.3\node_modules\eshost-cli\lib\host-manager.js:191
    const version = status[engine] || (status.installed[engine] && status.installed[engine].version);
                                                       ^

TypeError: Cannot read property 'javascriptcore' of undefined
    at Object.exports.configureFromVersionUpdater (C:\Users\Jack\AppData\Roaming\npm\pnpm-global\4\node_modules\.pnpm\registry.npmjs.org\eshost-cli@7.6.3\node_modules\eshost-cli\lib\host-manager.js:191:56)
    at Object.<anonymous> (C:\Users\Jack\AppData\Roaming\npm\pnpm-global\4\node_modules\.pnpm\registry.npmjs.org\eshost-cli@7.6.3\node_modules\eshost-cli\bin\eshost.js:294:15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants