Giter Site home page Giter Site logo

Issues Deploying about refire-forum HOT 2 CLOSED

hoppula avatar hoppula commented on May 14, 2024
Issues Deploying

from refire-forum.

Comments (2)

hoppula avatar hoppula commented on May 14, 2024

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.

tobross avatar tobross commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.