Skip to content
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

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

Open
Yhan17 opened this issue Oct 8, 2021 · 3 comments
Open

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

Yhan17 opened this issue Oct 8, 2021 · 3 comments

Comments

@Yhan17
Copy link

Yhan17 commented Oct 8, 2021

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: nodejs/node#31710

@randomnessdev
Copy link

randomnessdev commented Nov 22, 2021

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

@Yhan17
Copy link
Author

Yhan17 commented Nov 22, 2021

@randomnessdev Unfortunately not

@randomnessdev
Copy link

@Yhan17

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants