eshost-cli icon indicating copy to clipboard operation
eshost-cli copied to clipboard

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

Open Jack-Works opened this issue 4 years ago • 8 comments

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)

Jack-Works avatar Feb 14 '21 02:02 Jack-Works

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.

rwaldron avatar Feb 15 '21 20:02 rwaldron

~/.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.

Jack-Works avatar Feb 16 '21 02:02 Jack-Works

npm install [email protected]

Let me know if the issue still exists

rwaldron avatar Feb 16 '21 17:02 rwaldron

sorry this still happens in 7.6.1

Jack-Works avatar Feb 17 '21 07:02 Jack-Works

image

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

Jack-Works avatar Feb 17 '21 07:02 Jack-Works

npm install [email protected]

Please confirm

rwaldron avatar Feb 17 '21 14:02 rwaldron

Latest is now npm install [email protected]

rwaldron avatar Feb 17 '21 14:02 rwaldron

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\[email protected]\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\[email protected]\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\[email protected]\node_modules\eshost-cli\bin\eshost.js:294:15)

Jack-Works avatar Feb 17 '21 14:02 Jack-Works