Skip to content

Error running project locally – Got unexpected undefined from Parcel #26

@jebinj22

Description

@jebinj22

Description:
When attempting to run the source code locally, the build fails with a Got unexpected undefined error originating from nullthrows inside Parcel's core library.

Steps to Reproduce:

  1. Clone the repository.
  2. Install dependencies using pnpm install.
  3. Run the project locally using pnpm dev.
  4. Observe the error during the build process.

Actual Behavior:
The process fails with the following error trace:

🔴 ERROR  | Got unexpected undefined
🟡 64     | Error: Got unexpected undefined
    at nullthrows (C:\ExamplePath\RandomProject\node_modules\.pnpm\nullthrows@1.1.1\node_modules\nullthrows\nullthrows.js:7:15)
    at C:\ExamplePath\RandomProject\node_modules\.pnpm\@parcel+core@2.9.3\node_modules\@parcel\core\lib\requests\AssetRequest.js:73:177
    at async Promise.all (index 0)
    at async Object.run (...\AssetRequest.js:73:40)
    at async RequestTracker.runRequest (...\RequestTracker.js:633:20)
    at async AssetGraphBuilder.runAssetRequest (...\AssetGraphRequest.js:307:18)
    at async ...\@parcel\utils\lib\index.js:34237:13
    at async ...\@parcel\utils\lib\index.js:34230:9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions