Closed gartnera closed 3 months ago
The package.json
file has been modified to remove the engines
field which specified the Node.js version constraints. This change does not alter the declarations of exported or public entities within the project.
Files | Change Summary |
---|---|
package.json |
Removed engines field for Node.js version constraints |
In code's embrace, a change so slight,
The engine's rules took flight.
The Node's constraints, no longer bound,
Freedom in version now is found.
A project, light, and free to grow,
Let's see where this new path will go!
🌟🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@fadeev any idea why this change would cause this error in generate?
Generating protocol addresses...
An unexpected error occurred:
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.8)
at Logger.makeError (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at JsonRpcProvider.<anonymous> (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:444:23)
at step (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork'
}
@fadeev any idea why this change would cause this error in generate?
Generating protocol addresses... An unexpected error occurred: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.8) at Logger.makeError (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/node_modules/@ethersproject/logger/src.ts/index.ts:269:28) at Logger.throwError (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/node_modules/@ethersproject/logger/src.ts/index.ts:281:20) at JsonRpcProvider.<anonymous> (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:444:23) at step (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23) at Object.throw (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53) at rejected (/home/runner/work/protocol-contracts/protocol-contracts/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'could not detect network', code: 'NETWORK_ERROR', event: 'noNetwork' }
@lumtis that error seems to be unrelated. It is currently failing like that on main.
I think this was added accidentally in #164, it results in this error when running with nodejs 20.x:
Summary by CodeRabbit
package.json
file to enhance compatibility with different Node.js versions.