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

doxity init: The "listener" argument must be of type Function. Received type undefined #41

Open
7-of-9 opened this issue Jan 24, 2020 · 9 comments

Comments

@7-of-9
Copy link

7-of-9 commented Jan 24, 2020

No ./scripts directory is created, exits immediately with trace below.

Node: v10.16.2
npm: 6.9.0

events.js:55
throw new errors.ERR_INVALID_ARG_TYPE('listener', 'Function', listener);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type Function. Received type undefined
at checkListener (events.js:55:11)
at process.removeListener (events.js:318:7)
at Object. (/usr/local/lib/node_modules/@digix/doxity/node_modules/truffle-compile/index.js:8:9)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/usr/local/lib/node_modules/@digix/doxity/lib/compile/solc.js:76:23)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/usr/local/lib/node_modules/@digix/doxity/lib/compile/index.js:44:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)

@7-of-9
Copy link
Author

7-of-9 commented Jan 24, 2020

upgraded to node 13.7.0 (npm 6.13.6) - same error.

@KimiWu123
Copy link

@7-of-9 , have you solved this issue? We need a tool to generate solidity docs as well.

@shavidzet
Copy link

it would be nice to have support of typescript or flow types, static type checkers can catch problems earlier

@ArtemGavr
Copy link

@7-of-9 , have you solved this issue? We need a tool to generate solidity docs as well.

Did you manage to come up with the solution?

@brjd
Copy link

brjd commented Mar 19, 2021

I am having the same issue, using truffle and the problem comes from the truffle-compiler code.

@alexcambose
Copy link

This is still happening.

@klautern
Copy link

Still happening. Any workaround?

@ArtemGavr
Copy link

ArtemGavr commented Nov 10, 2021 via email

@AWolfsdorf
Copy link

Hey! I downgrade doxity to ^0.4.0 in the package.json and now its working.

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

8 participants