Skip to content

Firebase init a project TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined #2915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bubulbobul opened this issue May 10, 2025 · 1 comment

Comments

@bubulbobul
Copy link

Herror I have a bug I try to solved it but I don't have any clue,

I installed firebase globaly
I create my front end project
I went to firebase console on my navigator
I created my project
I tryed to link it by doing:
* firebase init
* Are you ready to proceed? Y (I pressed enter key)
* Then I selected my features (I pressed enter key)
* Use an existing project (I pressed enter key)
* And when I arrive to this step: What file should be used for Firestore Rules? (firestore.rules) and press enter I have the following error

and know this is the bug I am facing

[debug] [2025-05-10T16:26:05.034Z] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at Object.isAbsolute (node:path:452:5)
at Config.path (C:\Users\winda\AppData\Roaming\npm\node_modules\firebase-tools\lib\config.js:130:18)
at Config.writeProjectFile (C:\Users\winda\AppData\Roaming\npm\node_modules\firebase-tools\lib\config.js:162:32)
at C:\Users\winda\AppData\Roaming\npm\node_modules\firebase-tools\lib\init\features\firestore\rules.js:37:23
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async doSetup (C:\Users\winda\AppData\Roaming\npm\node_modules\firebase-tools\lib\init\features\firestore\index.js:48:5)
at async init (C:\Users\winda\AppData\Roaming\npm\node_modules\firebase-tools\lib\init\index.js:41:9)
at async Command.initAction [as actionFn] (C:\Users\winda\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\init.js:188:5)

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@bubulbobul bubulbobul changed the title TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined Firebase init a project TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants