Skip to content

Unexpected error: "The id argument must be of type string. Received undefined" #470

Open
@ochoav

Description

@ochoav

I am trying to use this package, but I am getting an error when bundling with Expo!

Here are 2 different ways the error shows up:

[Error: TransformError node_modules/react-native-url-polyfill/index.js: The "id" argument must be of type string. Received undefined]
TypeError: The "id" argument must be of type string. Received undefined
    at validateString (node:internal/validators:162:11)
    at Module.require (node:internal/modules/cjs/loader:1228:3)
    at require (node:internal/modules/helpers:176:18)
    at transformJS (apps/mobile/node_modules/metro-transform-worker/src/index.js:230:35)
    at transformJSWithBabel (apps/mobile/node_modules/metro-transform-worker/src/index.js:372:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.transform (apps/mobile/node_modules/metro-transform-worker/src/index.js:518:12)
error: node_modules/react-native-url-polyfill/index.js: The "id" argument must be of type string. Received undefined

I'm not sure what to make of this! I wonder if it's related to an incompatible metro package alongside the rest of our setup?

Lmk if I can provide more info!

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