New issue
Advanced search Search tips

Issue 833501 link

Starred by 4 users

Issue metadata

Status: Duplicate
Merged: issue 832202
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

CacheStorage API interaction with ES module (using export) results in runtime error

Project Member Reported by jeffy@google.com, Apr 16 2018

Issue description

(I'm moving a bunch of third-party details over from https://bugs.chromium.org/p/chromium/issues/detail?id=810469, as that issue is marked WontFix.)

As per the more recent reports, this appears to be cropping up on Windows 10 running M65.

===

The initial report:

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Steps to reproduce the problem:
1. Go to https://morning-landmine.glitch.me/
2. Open the console and notice the logs and errors

Source Code: https://glitch.com/edit/#!/morning-landmine?path=views/index.html:30:6

What is the expected behavior?
The "module.js" file should be cachable in the window and the service worker.

What went wrong?
The service worker throws an error in Chrome 65 "Uncaught (in promise) SyntaxError: Unexpected token export".

(Not this is just **caching** the file - not running it)

Did this work before? N/A 

Chrome version: 65.0.3325.51 (Official Build) dev (64-bit)  Channel: n/a
OS Version: 
Flash Version:


===

Some more recent reports:

Same problem here, with a GitHub Pages hosting, and the Workbox service worker library:

https://helloesm.hwalab.com/

Repository source code:

https://github.com/hwalab/helloesm

Google Chrome 65.0.3325.181 (Official Build) (64-bit) on Windows 10 Home 10.0.16299 Build 16299


app.js:6 Uncaught (in promise) SyntaxError: Unexpected identifier
    at Object.<anonymous> (workbox-core.prod.js:1)
    at Generator.next (<anonymous>)
    at n (workbox-core.prod.js:1)
    at workbox-core.prod.js:1

The service worker fails to activate ("is redundant"), and the Chrome Lighthouse audit tool reports that "user will not be prompted to install the Web App".

On Chrome 65.0.3325.109 on Android 7.0, the Add to Home screen option, which used to install the PWA in the past, after refresh now it only offers to add it as a simple shortcut.

More details and screenshots in this Workbox issue comment:
https://github.com/GoogleChrome/workbox/issues/1433#issuecomment-381656479
 
I'm getting really mixed results for this.

Just tried in Chrome Version 67.0.3393.4 (Official Build) dev (64-bit) and seeing the error.

Comment 3 by jsb...@chromium.org, Apr 16 2018

Mergedinto: 832202
Status: Duplicate (was: Untriaged)

Comment 4 by jsb...@chromium.org, Apr 16 2018

Cc: horo@chromium.org
Status: Unconfirmed (was: Duplicate)
Whoops, sorry. Probably related but not exactly the same.

Comment 5 by jeffy@google.com, Apr 16 2018

I strongly suspect that is the same as https://bugs.chromium.org/p/chromium/issues/detail?id=832202, so if you'd rather use that bug for tracking, that seems reasonable.
Labels: Needs-Triage-M65

Comment 7 by horo@chromium.org, Apr 17 2018

Status: Duplicate (was: Unconfirmed)
I think this is the same issue.

Sign in to add a comment