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 attempting to run a script, get an error message no matter what is in the script
How to reproduce
embark new dapp
mkdir scripts && cd scripts
touch script.js
embark exec scripts.js
Expected behavior
The script runs
Actual Behavior
embark info invoked /Users/patrick/.nvm/versions/node/v12.18.4/lib/node_modules/embark/bin/embark
embark info located /Users/patrick/code/frameworks/embark/node_modules/embark/bin/embark
embark info Switching from [email protected] to [email protected]
embark ERR! Unhandled exception in the command-line interface
embark ERR! TypeError: Cannot create property 'plugins' on string 'embark.json'
embark ERR! at Config.loadConfigFiles (/Users/patrick/code/frameworks/embark/node_modules/embark-core/src/config.ts:183:5)
embark ERR! at Engine.init (/Users/patrick/code/frameworks/embark/node_modules/embark-engine/src/index.ts:101:17)
embark ERR! at EmbarkController.exec (/Users/patrick/code/frameworks/embark/node_modules/embark/src/cmd/cmd_controller.js:370:12)
embark ERR! at Command.<anonymous> (/Users/patrick/code/frameworks/embark/node_modules/embark/src/cmd/cmd.js:189:21)
embark ERR! at Command.listener (/Users/patrick/code/frameworks/embark/node_modules/commander/index.js:315:8)
embark ERR! at Command.emit (events.js:315:20)
embark ERR! at Command.parseArgs (/Users/patrick/code/frameworks/embark/node_modules/commander/index.js:654:12)
embark ERR! at Command.parse (/Users/patrick/code/frameworks/embark/node_modules/commander/index.js:474:21)
embark ERR! at Cmd.process (/Users/patrick/code/frameworks/embark/node_modules/embark/src/cmd/cmd.js:37:13)
embark ERR! at /Users/patrick/code/frameworks/embark/node_modules/embark/src/bin/embark.js:96:13
embark ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
Please provide additional information about your system
Bug Report
Summary
When attempting to run a script, get an error message no matter what is in the script
How to reproduce
embark new dapp
mkdir scripts && cd scripts
touch script.js
embark exec scripts.js
Expected behavior
The script runs
Actual Behavior
Please provide additional information about your system
OS: MacOS BigSur 11.1
Embark Version: 6.0.0
Node Version: 12.18.4
NPM Version: 6.14.10
Sometimes issues are related to Embark's installation. Can you provide information on how Embark was installed?
npm -g install embark
The text was updated successfully, but these errors were encountered: