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

'*.bundle.jsBranch' files in '2-download-and-install' not created #11

Open
lin-brian-l opened this issue Nov 25, 2018 · 0 comments
Open

Comments

@lin-brian-l
Copy link

lin-brian-l commented Nov 25, 2018

Hello,

I'm attempting to follow along with the section of the tutorial for downloading an application in the background, but when using using npm run server on one terminal window and npm start on another, I get errors in the Chrome console about failed requests and my cache storage is empty unless I don't include the bundled files. Can someone look into why this is occurring?

Also, it's worth noting that after I pulled the 2-download-and-install branch, I was getting errors when attempting to register the service worker because src/sw.js was not included in the assets array of the angular.json file.

EDIT: From my understanding, *.bundle files are no longer created by newer versions of the angular-cli. Can the sw.js file be updated to reflect the correct files?

EDIT2: When I was attempting the next lesson (Using Service Workers To Implement a Cache Then Network Fetch Strategy), taking the page offline and then refreshing would cause the page to crash instead of loading without the courses content. I was able to resolve this by adding the /runtime.js file to the cache, which was not described in the video; can this be added to sw.js?

@lin-brian-l lin-brian-l changed the title *.bundle.jsBranch '2-download-and-install' does not work '*.bundle.jsBranch' files in '2-download-and-install' cannot be cached Nov 25, 2018
@lin-brian-l lin-brian-l changed the title '*.bundle.jsBranch' files in '2-download-and-install' cannot be cached '*.bundle.jsBranch' files in '2-download-and-install' not created Nov 25, 2018
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

1 participant