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
i was trying to using the scripts but it seem like i am doing something wrong as you did not document the steps to run it,
when i do --- truffle exec src/Snapshot.js
i get this error -
Using network 'development'.
TypeError: Class constructor Snapshot cannot be invoked without 'new'
at exec (/opt/homebrew/lib/node_modules/truffle/build/webpack:/packages/require/dist/index.js:122:1)
at node:internal/util:361:7
at new Promise (<anonymous>)
at exec (node:internal/util:347:12)
at Object.module.exports [as run] (/opt/homebrew/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/exec/run.js:43:1)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runCommand (/opt/homebrew/lib/node_modules/truffle/build/webpack:/packages/core/lib/command-utils.js:190:1)
Truffle v5.5.27 (core: 5.5.27)
Node v16.17.0
The text was updated successfully, but these errors were encountered:
i was trying to using the scripts but it seem like i am doing something wrong as you did not document the steps to run it,
when i do ---
truffle exec src/Snapshot.js
i get this error -
The text was updated successfully, but these errors were encountered: