firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'id' must be a non-empty string. Received ''

Open ThatRandomGuy09 opened this issue 4 years ago • 7 comments

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'id' must be a non-empty string. Received '', i am having this error while working in express.js, can you help me

ThatRandomGuy09 avatar Jul 26 '22 05:07 ThatRandomGuy09

Had the same issue, realized it was a very basic mistake.

In my case, I wrote: const express = require() instead of: const express = require("express")

Check that the argument in the bracket is fill. Hope that helps

Mr-Robot-err-404 avatar Jul 26 '22 09:07 Mr-Robot-err-404

@Mr-Robot-err-404 I have tried this too but I am getting the same error, trying installing the new version of node and then executing it but it didn't work

ThatRandomGuy09 avatar Jul 26 '22 12:07 ThatRandomGuy09

@ThatRandomGuy09 Hi! As reported, it's difficult for us to track down the issue you are experiencing. Would you mind following the issue template and providing us a small, reproducible code so we can help w/ debugging?

taeold avatar Jul 26 '22 19:07 taeold

@taeold hey, appreciate your efforts for the help, but I figured out the error and solved it, Thanks again

ThatRandomGuy09 avatar Jul 27 '22 04:07 ThatRandomGuy09

@taeold hey, appreciate your efforts for the help, but I figured out the error and solved it, Thanks again

Can you plz tell us what was your solution? because I have same issue.

fateme-zka avatar Nov 14 '22 12:11 fateme-zka

@taeold hey, appreciate your efforts for the help, but I figured out the error and solved it, Thanks again

Can you plz tell us what your solution was? because I have the same issue.

As I said I had the same issue, I can bet you, you should check where you require some library. Your problem would be found there🤦‍♂️🤦‍♂️

fateme-zka avatar Nov 14 '22 12:11 fateme-zka

yes in my case it is also happening beacuase i imported a sequelize package by

const sequelize = require(''); but when i used like - const sequelize = require('sequelize');
it gets removed and project is running successfully

InnocentDaksh63 avatar Mar 18 '23 17:03 InnocentDaksh63