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

Cannot read property 'map' of undefined #2177

Open
stanta opened this issue Jan 11, 2020 · 1 comment
Open

Cannot read property 'map' of undefined #2177

stanta opened this issue Jan 11, 2020 · 1 comment

Comments

@stanta
Copy link

stanta commented Jan 11, 2020

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,

 npm -g install embark

--

@jrainville
Copy link
Collaborator

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 😉

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