firebase deploy --only functions = [ERR_UNSUPPORTED_ESM_URL_SCHEME]
See original GitHub issueEnvironment 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
- Upgrade from node 10 to node 14 (update from commonJS to ESM).
- 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:'
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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Manage functions | Cloud Functions for Firebase - Google
firebase deploy --only functions. By default, the Firebase CLI deploys all of the functions inside index.js at the same time. If your project...
Read more >firebase deploy --only functions overrides existing functions
You can use firebase partial deploys $ firebase deploy --only functions:makeUppercase. Will only deploy makeUppercase function.
Read more >Deploying 150+ functions is very slow - Google Groups
We run a large web app whose backend is hosted on Firebase Functions. ... Assuming this isn't the initial upload, you can of...
Read more >haroldadmin/functions-differ: Tool to find Firebase ... - GitHub
This helps you selectively deploy only the functions that changed, thus saving time during re-deployments. It detects any changes to a function by...
Read more >Optimizing Deployments for Cloud Functions - haroldadmin
Run the firebase deploy --only functions:[<function-names>] for the functions in each batch. Here's a simplified implementation of the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will try to get the fix merged soon so that the bug is fixed by next CLI release.
In the meantime, if anyone is willing to test out the fix (I don’t have a Windows machine), I’d appreciate it:
@PMLS3 Can you try running the latest CLI version (the change has been released for few months):