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

TypeError: node.getInputStream is not a function #28

Open
stromman opened this issue Jul 23, 2024 · 0 comments
Open

TypeError: node.getInputStream is not a function #28

stromman opened this issue Jul 23, 2024 · 0 comments

Comments

@stromman
Copy link

stromman commented Jul 23, 2024

my package is :

"scripts": {
    "compile": "NET=mainnet npx hardhat compile",
    "test": "NET=devnet npx hardhat test",
    "coverage": "sh coverage.sh"
  },
  "license": "GPL-3.0",
  "devDependencies": {
    "@nomicfoundation/hardhat-toolbox": "^4.0.0",
    "@nomiclabs/hardhat-solpp": "^2.0.1",
    "@openzeppelin/contracts": "^4.9.3",
    "hardhat": "^2.19.4"
  },
  "dependencies": {
    "@nomicfoundation/hardhat-ethers": "^3.0.5",
    "ethers": "^6.11.1",
    "solidity-coverage": "^0.8.11"
  }

but it still got

NET=devnet npx hardhat test
(node:4776) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4776) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
An unexpected error occurred:

TypeError: node.getInputStream is not a function
  at getNodeText (/node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/antlr-utils.js:23:12)
  at Oven._transformNode (/Users//nero-chain/system-contracts/node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/oven.js:139:10)
  at Oven._transformNode (/node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/oven.js:97:24)
  at Oven._transformNode (/node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/oven.js:136:21)
  at Oven._transformNode (/node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/oven.js:136:21)
  at Oven._transformNode /node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/oven.js:136:21)
  at async Oven.transform (//node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/oven.js:36:17)
  at async Object.processCode (node_modules/@nomiclabs/hardhat-solpp/node_modules/solpp/src/index.js:32:17)
  at async SimpleTaskDefinition.action (/node_modules/@nomiclabs/hardhat-solpp/src/index.ts:54:29)
  at async Environment._runTaskDefinition (/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)



what happend for it?

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