Firebase PWA content not updated

I'm building a PWA (preact/webpack/SW) on Firebase, but it seems after any: firebase deploy My PWA content is not updated. Like I just want to change some text and it will never be shown after a page refresh I need to manually clear the cache. I ...
more »

2017-09-21 18:09 (0) Answers

React function returns undefined

I'm about two weeks into studying React and working on my first SPA. I'm loving react and able to figure out many of my problems but I've run into two problems on this MusicPlayer component I'm making. One is that when I change src in my html audio...
more »

2017-09-13 08:09 (1) Answers

Laravel Webpack - Mix file from app folder

I'm trying to use webpack with a file from a folder located on Project/app/Dashboard/Resources/scss/main.scss and Project/app/Dashboard/Resources/js/main.js, but I get an error. I've try: mix.js('app/Dashboard/Resources/js/main.js', 'public/js/dash...
more »

2017-09-12 21:09 (1) Answers

Angular doesn't update page with cache enabled

I made an angular website which contains an "add" and "delete" form to manipulate data on a table on the same page. When I test it locally or with Chrome Dev Console (disabled cache), when I add a new item or delete one, the table refresh automatica...
more »

2017-09-05 14:09 (0) Answers

Webpack - Loading chunk 0 failed

Some of my users are getting this error: Unhandled rejection message: 'Loading chunk 0 failed' stack: Loading chunk 0 failed at HTMLScriptElement.n The problem is, I've no success in reproducing it. and I've this error for some time now. It ...
more »

2017-09-05 11:09 (1) Answers

React Webpack build syntax errror in index.js

So I have started my first react project and I want to use webpack to compile everything into 1 file bundle.js. I have installed everything I need but upon compiling I got an error. I ran the command ./node_modules/.bin/webpack -d and it throws thi...
more »

2017-09-01 14:09 (0) Answers

Angular 4 Asp.Net core 1.x cache busting

I have an issue with cache busting with angular 4 and Asp.net core project. I use asp.net core with webpack to bundle files. we do append asp-append-version="true" on our index.html page and all of our chunkFilename have [chunkhash]. By this on dep...
more »

2017-08-28 14:08 (0) Answers

yarn / npm bulld completes then hangs indefinitely

Anyone have any experience with this? Running yarn build completes the build but never exits the process, it just hangs... The same thing happens when i run npm run build stars-app|master⚡ ⇒ yarn build yarn build v0.27.5 $ react-scripts build Cr...
more »

2017-08-25 19:08 (0) Answers

ERROR in bundle.js from UglifyJs Name expected

I am trying to use UglifyJS to minimize/compress my bundle.js file. When I run webpack -p, I am getting the following: ERROR in bundle.js from UglifyJs Name expected [bundle.js:105519,6] Line 105519 is as follows: const {M, l, pattern} = __webpa...
more »

2017-08-24 22:08 (2) Answers

Heroku : 404 (Not Found), "dist/" not created

I'm trying to understand how PWA works and so I want to deploy my React PWA on Heroku. After a successful deployment with no error, when I'm visiting my web app page I have this white page with: 404 Not Found nginx After some research I figured out,...
more »

2017-08-24 10:08 (0) Answers

Compilation Issue with a React Login Screen

I've been trying to compile the front end of this guide (git repository here) to get my head round JSX and React. I want to eventually use the code to produce a login screen for a Cordova app. When trying to compile with webpack, for which I have th...
more »

2017-08-19 19:08 (0) Answers

Dynamically load images before render

I've browsed a lot of questions but I can't find a correct answer to this. Say I have an images folder, and I want to display a specific image in there. I don't know the name of the image to be displayed, it's returned by a RESTful API along with man...
more »

2017-08-18 15:08 (1) Answers

Webpack loader order misbehaved

I have used webpack ^2.2.1. I have added some loaders In my webpack.config.js file. But my loader have not call in an order. I used babel-loader for transform react-es6 codes to react-es5 codes. My custom-loader need react-es6 code. So I put my lo...
more »

2017-08-18 10:08 (1) Answers