Comments (15)
We're seeing the same issue. We managed to get
"firebase-admin": "4.2.1",
"firebase-functions": "0.5.9",
to work though.
from firebase-functions.
Fixed by #66
from firebase-functions.
Can you try running this in your functions folder:
npm install firebase-functions@latest --save
npm install [email protected] --save
If you still get errors, can you copy and paste here?
from firebase-functions.
This is not a bug, it's just quirks with how npm install works. Running npm i --save firebase-admin
inside a directory that already has a package.json which has a firebase-admin field will install the version that is indicated in the package.json, not the latest version in npm.
Try running npm i --save [email protected] --save --save-exact
, this will put "firebase-admin": "5.1.0"
in your package.json.
from firebase-functions.
Tried with admin: 4.2.1 and functions: 0.5.9 and got the same error.
./node_modules/firebase-admin/node_modules/isemail/lib/isemail.js
Module not found: Can't resolve 'dns' in '/Users/devmode/Documents/projects/google-crm/node_modules/firebase-admin/node_modules/isemail/lib'
Error fires when I require('firebase-admin')
Anyone figured anything out?
from firebase-functions.
This is not fixed.
I get it with [email protected]
, which says UNMET PEER DEPENDENCY firebase-admin@~5.1.0
.
Then:
npm i --save firebase-admin
installs some 4.2.1, which is wrong.
npm i --save [email protected]
installs 5.1.0, which is right but now obviously I have "firebase-admin": "^5.1.0"
in my package.json :(
I don't know why npm i --save firebase-admin
installs a 4.x though, since npm reports that the latest version is 5.2.1 :/
Can you please reopen?
from firebase-functions.
Thanks, I will try that combination of versions.
from firebase-functions.
I did not get the 0.5.9 combination of @ahaverty to work – it shows the same error for me :(.
Also using the latest version today still gave me 0.6.0 and demanded firebase-admin 5.0.1.
from firebase-functions.
firebase/firebase-tools#434 will also update the default "firebase init" template, which will hopefully alleviate some of the npm pain.
from firebase-functions.
isn't the point of using package managers and package manifests with exact versions to avoid manually wrangling with versions? Or is this not possible with npm packages? Note: I am completely new to npm/node
from firebase-functions.
I'm seeing dependency issues as well.
firebase-admin: 5.2.1
➜ customer-manager (master) ✗ yarn add firebase-admin .../customer-manager
yarn add v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
├─ @google-cloud/[email protected]
└─ [email protected]
Done in 4.74s.
➜ customer-manager (master) ✗ yarn start .../customer-manager
yarn start v0.27.5
$ node build/dev-server.js
> Starting dev server...
ERROR Failed to compile with 22 errors 10:37:27 PM
These dependencies were not found:
* fs in ./~/firebase-admin/lib/auth/credential.js, ./~/@google-cloud/storage/src/bucket.js and 10 others
* net in ./~/faye-websocket/lib/faye/websocket/client.js, ./~/forever-agent/index.js and 3 others
* tls in ./~/faye-websocket/lib/faye/websocket/client.js, ./~/forever-agent/index.js and 1 other
* child_process in ./~/google-auth-library/lib/auth/googleauth.js
* dns in ./~/isemail/lib/isemail.js
from firebase-functions.
@esparkman can you file this as an issue on https://github.com/firebase/firebase-admin-node?
from firebase-functions.
@laurenzlong sure thing. Any additional information needed?
from firebase-functions.
Can you try to repro this in a plain-old clean directory? (I'm pretty sure you'll be able to, since this seems to be a firebase-admin issue that's independent of Functions). Then make sure you follow the issues template for firebase-admin. Thanks!
from firebase-functions.
@KevinMind Please only indicate issues with the latest versions of each of the modules. Your versions are outdated. And as indicated above, if you still experience issues after using the latest versions, please file the issue on firebase-admin-node, not here.
from firebase-functions.
Related Issues (20)
- TypeError: Cannot read properties of null (reading 'seconds') HOT 15
- Firebase Functions Encoding Failure for Self-Referencing Objects Leads to Maximum call stack size exceeded HOT 15
- Function execution took 58984 ms, finished with status: 'timeout' HOT 2
- [Firestore] Error: 4 DEADLINE_EXCEEDED: Deadline exceeded HOT 1
- HTTPS Request returns CORS errors even with the domain added as allowed origin HOT 4
- How to deploy function with latest secrets at RUNTIME? HOT 2
- DocumentOptions do not allow parameterized configuration values HOT 2
- Various Firebase functions started reporting crash: Maximum call stack size exceeded HOT 10
- regression with firebase-functions-test wrapping a v1 scheduled function HOT 2
- Please move `node-fetch` as a `devDependency` HOT 1
- `getDownloadURL` function fails in emulator mode if storage rules are not allowed HOT 3
- Consider exporting `SecretParam` type HOT 3
- CORS error when calling v2 functions using onCall HOT 3
- CallableOptions doesn't accept BooleanParam which is accepted by HttpsOptions HOT 2
- Structured logging error context not being serialized HOT 3
- Don't verify auth token on public endpoints HOT 5
- Firebase Blocking Auth Functions Run Incorrectly on Failed Signup HOT 2
- Python: Documentation says "from firebase_functions.core import init", however this library doesn't exist at all. Where is it? HOT 1
- Module '"firebase-functions/v1"' has no exported member 'onInit'. HOT 5
- Single CORS origin ignored for `onCall` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-functions.