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

Unsupported URL Scheme on windows and linux when build or generate

Open Yhan17 opened this issue 4 years ago • 3 comments

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

Yhan17 avatar Oct 08 '21 01:10 Yhan17

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

randomnessdev avatar Nov 22 '21 17:11 randomnessdev

@randomnessdev Unfortunately not

Yhan17 avatar Nov 22 '21 17:11 Yhan17

@Yhan17

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

randomnessdev avatar Nov 22 '21 19:11 randomnessdev