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

Uncaught TypeError: (conractName).mint is not a function #1149

Open
Roger-2025 opened this issue Jan 6, 2025 · 1 comment
Open

Uncaught TypeError: (conractName).mint is not a function #1149

Roger-2025 opened this issue Jan 6, 2025 · 1 comment

Comments

@Roger-2025
Copy link

Roger-2025 commented Jan 6, 2025

Greetings. I am unable to test a mint function through Truffle and Ganache. I am on a Windows 11 machine. After compiling the contract and entering the Truffle console, I launch from the Truffle development terminal the function (contractName).mint ('https...1'). and I get a resulting error stating: "Uncaught TypeError: (conractName).mint is not a function"

The issue seems to point to a missing module; whereas, when I enter the Truffle console, I get an error:

This version of uWs is not compatible with your Node.js build:
Error; Cannot find module '../binaries/uws_win32_x64_127.node'
Require stack:

C;\users*\AppData\Roaming\npm\node_modules\truffle\node_modules\ganache\dist\node\core.js
C;\users*
\AppData\Roaming\npm\node_modules\truffle\build\console.bundled.js
C;\users*\AppData\Roaming\npm\node_modules\truffle\node_modules\original-require\index.js
C;\users*
\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js
Falling back to a NodeJS implementation; performance may be degraded.

The Truffle development console is launched, but then I get the .mint function error mentioned above. I'm thinking that I need to find a solution for fixing the missing module issue and I am fresh out of ideas. Any help is appreciated.

@uNetworkingAB
Copy link
Contributor

This is too abstract question to ask here. Truffle is an app built on uWS.js, it's not supported or developed here.

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

2 participants