Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I have a react application which I want to host using firebase. I managed to deploy the front end no problem. I then went to add firebase functions to the project. However when I run firebase serve, it serves an old version of the project to localhost:5000.
I've tried uninstalling and removing all firebase files from the project. Deleting the project from firebase. Rebuilding the application with npm run build and redeploying the project.
Also it deploys the most recent version correctly when I use firebase deploy but still serves the outdated version in the localhost (including files which are completely deleted from the project)
If anyone has any ideas it would be greatly appreciated as i'm completely stumped.
Thanks
The issue was cache. Clearing cache or using a different browser seems to solve the problem.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 11 months ago.
Improve this question
I am using firebase and uploading files successfully to storage in an actual firebase project but when I try and use the storage emulator I can see the upload requests fail with CORS errors.
I am using the web v9 sdk and doing something pretty simple using uploadBytes as described in the docs
In order to get it working without the emulator I had to configure CORS for my buckets and that seems to be fine. For now they are both configured like
[{"maxAgeSeconds": 3600, "method": ["GET", "POST"], "origin": ["http://localhost:3000"]}]. I guess I need to do something similar when using the emulator but I am unclear exactly what or how..
The firebase docs say
The Cloud Storage emulator does not support any bucket-level configuration including storage class, bucket-level CORS configuration, labels, or retention policies. Firebase intends to improve this support over time.
But surely that doesn't mean it is not possible to upload files to the emulator using the web sdk at all? What am I doing wrong?
I had the emulator port misconfigured and was thrown by the error talking about CORS, it works fine now
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
What does the firebase client need to upload the firebase functions? All I can identify is that it takes my files from my lib directory, does something to them, and then uploads everything. Does it take my dependencies also? How does this work?
The reason I'm asking is that I'm trying to use firebase functions with kotlin-js. Kotlin-js natively integrates with webpack, and can integrate with npm dependencies. I can give firebase a single file with all dependencies integrated, but it doesn't seem like firebase is uploading dependencies. It seems like maybe the package.json is being sent up or something.
If I compile to kotlin-js, what portions of my code/dependencies should I put in my lib folder to be uploaded?
The CLI uploads everything in the functions folder, except for node_modules. That will be rebuilt on the server by running npm install. There's not really enough information here to understand what you ought to be doing, but everything that's needed at runtime needs to be in the functions folder.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm relatively new to Vue.js, but not to Javascript/jQuery, and I've been doing pretty deep work with WordPress for about 8 years. I've spent way too many hours trying to configure a WordPress plugin built with vue-cli to hot reload components in the /wp-admin section. Has anyone successfully setup the proxy table or used another middleware solution to do this? Are there workarounds to this development workflow that I'm not aware of?
I really want to use Vue.js in my plugins but development is a real pain without the support of the Vue devtools and JS injection/hot reloading.
Thanks!
Check my GitHub repo:
https://github.com/Tech-Nomad/wordpress-php-vue-webpack-hot-module-replacement-hmr-starter-setup
You will find there a full perfectly working webpack starter setup for a WordPress theme. Just change the path "wp-content/themes/your-fancy-theme/app" to "wp-content/plugins/your-fancy-plugin/app" and you are good to go ๐
I needed months of work to get it done. I've tried a lot of stuff which didn't work, like vue-cli (web socket proxy errors). Apache proxying as I thought it's an issue with Apache. I've even learned Nginx and Docker to try out all the possible suggestions I've found on Github and Stackoverflow ๐ I've almost even gave up, but for any reason I'v just tried pure Webpack setup without vue-cli and voilรก HMR web socket errors gone ๐
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I'm developing a web app using the firebase CLI (firebase serve) but when I edit the code and reload my localhost the changes are not applied or it takes a couple of hours. It was applying the changed immediately before.
Is anyone having this sort of trouble or am I doing anything wrong?
I managed to fixed it by restarting the editor, the terminal and the browser... Still not sure what was going on there.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I am redesigning my company's website. I am not a developer, but have learned as I went along. I am ready to push out my site to a test subdomain, but I can't figure out how to publish it correctly using VS Express for Web 2013. I have multiple problems.
First, we have our own internal IIS server and I have a "site3" folder on the server ready for testing the new site. I can't use Web Deploy or Web Deploy Package. I publish using File System. This seems to sorta work, but no images load and it redirects me to a Login page that I have no intention of using. When I run the site on my local machine, everything works 100% fine - no login page and all site resources load and function perfectly.
Second, when I try to publish, there is no "Release" configuration like I see in online tutorials and MSDN, only "Debug." Is there something I'm missing in the configuration? The publishing? Am I using the wrong framework? This is my first rodeo and I am completely lost.
If anyone wants to look at my completely jacked up site, it's http://site3.tcns.net
EDIT: I'm beginning to think that it has something to do with the fact I have no clue how to configure the web.config file and the default file isn't plug-and-play for a basic website.
I have some idea as to what happened. I accidentally created an MVC solution instead of a basic website.