0

Been on this for hours. Those Dapp tutorials are terrible. Why is this happening? My truffle.js file is fine. Why can't it read the javascript?

`Ryans-MBP:hidalgo ryan$ npx truffle migrate --reset /Users/ryan/hidalgo/truffle.js:9 solc: { ^^^^

SyntaxError: Unexpected identifier at wrapSafe (internal/modules/cjs/loader.js:1001:16) at Module._compile (internal/modules/cjs/loader.js:1049:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14) at Module.require (internal/modules/cjs/loader.js:974:19) at Object.require (internal/modules/cjs/helpers.js:92:18) at Function.load (/usr/local/lib/node_modules/truffle/build/webpack:/packages/config/dist/index.js:158:1) at Function.detect (/usr/local/lib/node_modules/truffle/build/webpack:/packages/config/dist/index.js:147:1) at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:194:1) at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:167:1) at Object.586806 (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/cli.js:57:1) at webpack_require (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap:18:1) at webpack_require.x (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap:36:1) at Function.webpack_require.x (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/runtime/startup chunk dependencies:36:1) at /usr/local/lib/node_modules/truffle/build/webpack:/webpack/startup:3:1 Truffle v5.3.10 (core: 5.3.10) Node v14.17.1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.