Skip to content

firebase deploy --only functions = [ERR_UNSUPPORTED_ESM_URL_SCHEME] #3689

@fouchekeagan

Description

@fouchekeagan

Environment info

firebase-tools: 9.16.5

Platform: Windows 10

Node: 14.17.3

NPM: 6.14.13

Package.json Dep:

Firebase: 8.9.1
@google-cloud/functions-framework: 1.9.0
firebase-functions: 3.15.4
Typescript: 4.3.5

Steps to reproduce

  1. Upgrade from node 10 to node 14 (update from commonJS to ESM).
  2. Attempt to deploy.

Expected behavior

The firebase functions to be deployed.

Actual behavior

Deploy fails while running pre-deploy script:
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

image

Additional info:
The same is shown if I specify a single function.
We had previously an issue with starting the emulators when initially updating to Node14 - this was resolved by #2994 / #3573 / #3574 (Thanks Daniel Lee!)
I can start the emulators and use the functions locally.

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