Skip to content

[bug] Template throws unexpected argument preConfigContent error #10

@hummusonrails

Description

@hummusonrails

Running the following command results in a crash during project scaffolding:

npx create-eth@beta -e BuidlGuidl/arbitrum-extension

After selecting foundry as the framework and confirming the prompts, I encountered this error:

✖ Template received unexpected argument `preConfigContent`. Expecting only `preContent`, `extraMenuLinksObjects`, `logoTitle`, `logoSubtitle`
...
ERROR Error occurred Error: Template received unexpected argument `preConfigContent`.
...
at file:///.../templates/utils.js:55:15

Expected Behavior:
The project should be scaffolded successfully without throwing an error on template arguments.

Actual Behavior:
The process fails with an unexpected argument error, referencing preConfigContent which is not part of the accepted list of template keys.

Steps to Reproduce:

  1. Run: npx create-eth@beta -e BuidlGuidl/arbitrum-extension
  2. Choose a project name and select foundry as the framework
  3. Observe the error during the scaffolding phase

Environment:

Suggested Fix:

Check if the template includes an unsupported field (preConfigContent) in its config and update to match the expected schema:
preContent, extraMenuLinksObjects, logoTitle, logoSubtitle.

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