Skip to content

Errors working through doc tutorial #48

@drewstone

Description

@drewstone

Building the contracts leads to some errors. The output of yarn build:all actually outputs to stderr instead of stdout which leads some automated scripting to think that it fails.

When getting to npx hardhat run scripts/deployment.ts --network arbSepolia it fails with. Possibly the actual build fails too and I'm not properly compiling at a previous step.

Error: Cannot find module '../../out/yul/Reader4844.yul/Reader4844.json'
Require stack:
- /Users/drew/webb/nitro-contracts/test/contract/toolkit4844.ts
- /Users/drew/webb/nitro-contracts/scripts/deploymentUtils.ts
- /Users/drew/webb/nitro-contracts/scripts/deployment.ts
    at Function.<anonymous> (node:internal/modules/cjs/loader:1225:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/drew/webb/nitro-contracts/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Module.require (node:internal/modules/cjs/loader:1311:12)
    at require (node:internal/modules/helpers:136:16)
    at Object.<anonymous> (/Users/drew/webb/nitro-contracts/test/contract/toolkit4844.ts:6:1)
    at Module._compile (node:internal/modules/cjs/loader:1554:14)
    at Module.m._compile (/Users/drew/webb/nitro-contracts/node_modules/ts-node/src/index.ts:1618:23) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/drew/webb/nitro-contracts/test/contract/toolkit4844.ts',
    '/Users/drew/webb/nitro-contracts/scripts/deploymentUtils.ts',
    '/Users/drew/webb/nitro-contracts/scripts/deployment.ts'
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions