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

Scripts are broken #2462

Open
PatrickAlphaC opened this issue Jan 8, 2021 · 0 comments
Open

Scripts are broken #2462

PatrickAlphaC opened this issue Jan 8, 2021 · 0 comments

Comments

@PatrickAlphaC
Copy link

Bug Report

Summary

When attempting to run a script, get an error message no matter what is in the script

How to reproduce

  1. embark new dapp
  2. mkdir scripts && cd scripts
  3. touch script.js
  4. 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 embark@6.0.0 to embark@6.0.0

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

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

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

1 participant