You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When type "embark build", get: Cannot read property 'map' of undefined
Deleting local node_modules, repeating install from scratch. This error repeats. [email protected], .sol files compiled by hands properly.
How to reproduce
embark build
/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6
var own = it.map;
^
TypeError: Cannot read property 'map' of undefined
at module.exports (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6:16)
at Config.loadEmbarkConfigFile (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:658:32)
at Config.loadEmbarkConfigFile [as loadConfigFiles] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:186:10)
at Engine.loadConfigFiles [as init] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-engine/src/index.ts:89:17)
at init (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:274:16)
at nextTask (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5324:14)
at Object.waterfall (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5334:5)
at EmbarkController.waterfall [as build] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:272:11)
at Command.build (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:138:16)
at Command.listener (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:315:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:654:12)
at Command.parse (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:474:21)
at Cmd.parse [as process] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:36:13)
at EmbarkBin.process [as exec] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/bin/embark.js:86:7)
at exec (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/bin/embark.js:51:10)
$ embark run --nodashboard --logfile log.txt --loglevel trace
error repeats
/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6
var own = it.map;
^
TypeError: Cannot read property 'map' of undefined
at module.exports (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6:16)
at Config.loadEmbarkConfigFile (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:658:32)
at Config.loadEmbarkConfigFile [as loadConfigFiles] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:186:10)
at Engine.loadConfigFiles [as init] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-engine/src/index.ts:89:17)
at init (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:142:16)
at nextTask (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5324:14)
at Object.waterfall (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5334:5)
at EmbarkController.waterfall [as run] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:140:11)
at Command.run (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:160:16)
at Command.listener (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:315:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:654:12)
at Command.parse (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:474:21)
at Cmd.parse [as process] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:36:13)
at EmbarkBin.process [as exec] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/sr
Please provide additional information about your system
Hi @stanta , sorry that you are experiencing this issue.
Do you have a public repo we could look at and try to replicate on?
I see you say that you upgraded to Embark 5, what was the previous version?
We have a migration guide but it isn't published yet, since we have not officially announced v5. You're one of the first courageous to try it 😉
Bug Report
Upgraded to Embark 5.0.
Summary
Current behavior
When type "embark build", get: Cannot read property 'map' of undefined
Deleting local node_modules, repeating install from scratch. This error repeats.
[email protected], .sol files compiled by hands properly.
How to reproduce
embark build
/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6
var own = it.map;
^
TypeError: Cannot read property 'map' of undefined
at module.exports (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6:16)
at Config.loadEmbarkConfigFile (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:658:32)
at Config.loadEmbarkConfigFile [as loadConfigFiles] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:186:10)
at Engine.loadConfigFiles [as init] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-engine/src/index.ts:89:17)
at init (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:274:16)
at nextTask (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5324:14)
at Object.waterfall (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5334:5)
at EmbarkController.waterfall [as build] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:272:11)
at Command.build (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:138:16)
at Command.listener (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:315:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:654:12)
at Command.parse (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:474:21)
at Cmd.parse [as process] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:36:13)
at EmbarkBin.process [as exec] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/bin/embark.js:86:7)
at exec (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/bin/embark.js:51:10)
$ embark run --nodashboard --logfile log.txt --loglevel trace
error repeats
/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6
var own = it.map;
^
TypeError: Cannot read property 'map' of undefined
at module.exports (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/core-js-pure/es/instance/map.js:6:16)
at Config.loadEmbarkConfigFile (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:658:32)
at Config.loadEmbarkConfigFile [as loadConfigFiles] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-core/src/config.ts:186:10)
at Engine.loadConfigFiles [as init] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/embark-engine/src/index.ts:89:17)
at init (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:142:16)
at nextTask (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5324:14)
at Object.waterfall (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/async/dist/async.js:5334:5)
at EmbarkController.waterfall [as run] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd_controller.js:140:11)
at Command.run (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:160:16)
at Command.listener (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:315:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:654:12)
at Command.parse (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/node_modules/commander/index.js:474:21)
at Cmd.parse [as process] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/src/cmd/cmd.js:36:13)
at EmbarkBin.process [as exec] (/home/st/.nvm/versions/node/v10.17.0/lib/node_modules/embark/sr
Please provide additional information about your system
OS: Mint 19
Embark Version: 5
Node Version: 10.17.0
NPM Version:6.11.3
Sometimes issues are related to Embark's installation. Can you provide information on how Embark was installed?
as in instruction,
--
The text was updated successfully, but these errors were encountered: