nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
641 stars 99 forks source link

Unsupported URL Scheme on windows and linux when build or generate #588

Open Yhan17 opened 2 years ago

Yhan17 commented 2 years ago

Version

@nuxtjs/firebase: "^7.6.1" firebase: "^8.10.0" nuxt: "^2.15.7"

Hi there, I was trying to build a nuxt app to deploy in vercel. However, I can't run the build due to some problems in the firebase files generated inside node_modules, which caused me not being able to deploy my application. The error happens when trying to import firebase files in node_modules\@nuxtjs\firebase\lib\module.js, where in windows and linux it does not identify at "build" or "generate" the file being passed due to the type of import. even in new apps with firebase and nuxt only. Below is the screenshot of the images.

My firebase config:

Captura de tela 2021-10-07 224348

When i run yarn build or yarn generate Captura de tela 2021-10-07 205402

In vercel: Captura de tela 2021-10-07 205410

Possible Solution: The directory passed in is being recognized as a browser URL on Windows and Linux, rather than a directory path. For this it would be necessary to pass the file: // before the directory path.

The question that is the solution is in the link: https://github.com/nodejs/node/issues/31710

randomnessdev commented 2 years ago

@Yhan17 Hi, did you find a solution for your issue?

Yhan17 commented 2 years ago

@randomnessdev Unfortunately not

randomnessdev commented 2 years ago

@Yhan17

I found the solution for my issue, i hope it will help you!