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

Class constructor Snapshot cannot be invoked without 'new' #5

Open
jacobabiola opened this issue Aug 26, 2022 · 0 comments
Open

Class constructor Snapshot cannot be invoked without 'new' #5

jacobabiola opened this issue Aug 26, 2022 · 0 comments

Comments

@jacobabiola
Copy link

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

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