Giter Club home page Giter Club logo

Comments (5)

CodinCat avatar CodinCat commented on May 22, 2024

Are you using the latest pwa template? e2e should pass after #21 was merged.

I just tried with a fresh install and everything works great:

2017-06-05 2 05 23

If you generated your project a few days ago (before #21) then you might need to upgrade your template manually or simply generate a new one.

from pwa.

andrisole92 avatar andrisole92 commented on May 22, 2024

No, I am still getting an error.

from pwa.

ragingwind avatar ragingwind commented on May 22, 2024

It happens because of SWPrecacheWebpackPlugin use physical fs not memfs. I think, generating service-worker.js is not necessary while e2e test. we can bypass when it times of test. thought? @addyosmani

from pwa.

addyosmani avatar addyosmani commented on May 22, 2024

Pardon the delay replying. I would be down for folks ignoring the service-worker.js in end-to-end tests but we can also explore making this work better. As @ragingwind pointed out, due to the fact we output a file to disk vs memfs, some workarounds might need to be crafted here.

from pwa.

default-writer avatar default-writer commented on May 22, 2024

@addyosmani I suppose @andrisole92 needs to disable service-worker programmatically, for whose who used it incorrectly (to disable errorneus site pages cache completely):

<script> navigator.serviceWorker.getRegistrations().then(function(registrations) { for(let registration of registrations) { registration.unregister() } }) </script>

from pwa.

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.