Skip to content

TypeError: Cannot destructure property 'verify' of 'require(...).default' as it is undefined. #2223

Discussion options

You must be logged in to vote

@decentralized-86 Remove .default in this line const {verify} = require("../utils/verify.js").default; in your deploy-fundme file

Also, remove the extension .js. Rewrite the line like this: const {verify} = require("../utils/verify");
The extension is probably what is causing the error in this case. And make sure that you indeed have the file in the specified location ../utils/verify

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@decentralized-86
Comment options

@othaime-en
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants