Comments (2)
Hi. Thanks for the detailed issue, have you checked if updating bundled firebase-tools
helps? This project has devDependency of firebase-tools
version ^3.1.0
and I think running npm run deploy
calls the local dependency instead of your global, newer version.
So I'd try to first replace "firebase-tools": "^3.1.0",
with "firebase-tools": "^5.0.0",
in package.json
. There are some API changes in newer firebase-tools
as you said, so the actual commands in package.json
's deploy:hosting
and deploy:rules
sections might have to be changed as well.
from refire-forum.
Alright! So, I did what you asked, and then while updating that I found npm-check-updates which is able to rewrite the package.json to to the most recent version of all dependencies. I ran that, and then installed again. I'm not sure whether it was your fix or the other that helped, but the deploy command ran after that.
THAT BEING SAID... Once I deployed, I get a white screen and after investigation, it looks like bundle.js' contents are the same as index.html error below.
Uncaught SyntaxError: Unexpected token < bundle.js:1
When I investigated the sources tab, bundle.js looked exactly like index.html. The only information I had to change in package.json was the html script. I am on a windows machine, so, I had to rewrite it to "html": "mkdir dist && cp index.html dist/index.html" because the dist folder was not being created.
Apologies for having a secondary issue. Still a deployment issue though! Thank you for your assistance!
from refire-forum.
Related Issues (20)
- ERROR in ./~/react-tap-event-plugin/src/TapEventPlugin.js HOT 2
- SSR + Next.js? HOT 1
- How can it be hosted in Firebase Host? HOT 5
- email and password login HOT 1
- NPM Install error HOT 6
- Command: npm run build error
- Size of project with node modules is too high HOT 1
- about adding admin users HOT 2
- Admin user added but not showing when logged in HOT 2
- Set database path from config HOT 1
- Suggestion : Custom Auth Service
- Material-UI instead of Elemental-UI
- npm run build failed (both CMD and POWERSHELL) HOT 2
- Dont have admin features HOT 32
- [Feature Request] 404 redirects HOT 2
- Why html is not working HOT 4
- Further development HOT 4
- firebase connection issue
- firebase issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refire-forum.