question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong registration path of worker-basic.min.js

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.0 node: 8.1.2 os: win32 x64 @angular/common: 4.3.4 @angular/compiler: 4.3.4 @angular/core: 4.3.4 @angular/forms: 4.3.4 @angular/platform-browser: 4.3.4 @angular/platform-browser-dynamic: 4.3.4 @angular/router: 4.3.4 @angular/cli: 1.3.0 @angular/compiler-cli: 4.3.4 @angular/language-service: 4.3.4 @angular/service-worker: 1.0.0-beta.16

Repro steps.

“serviceWorker”: true in angular-cli.json

Desired functionality.

sw-register.[hash].bundle.js contains navigator.serviceWorker.register("worker-basic.min.js") If sw-register.[hash].bundle.js is located in folder, and the url is: domain.com/bundles/sw-register.[hash].bundle.js, browser searches for worker-basic.min.js in the root folder, like this: domain.com/worker-basic.min.js

I expect that the path to worker-basic.min.js should be bundles/worker-basic.min.js Are there any workarounds?

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zygimantascommented, Jul 9, 2018

I am closing this issue because it was raised by me, and there were a lot of changes regarding service working during the last year. I can not replicate this issue now.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

serviceworker.js keeps pointing to incorrect path from ...
In my php application I have a file called main.js and in it has a service worker implementation to register ...
Read more >
Top 5 @angular/service-worker Code Examples - Snyk
How to use @angular/service-worker - 10 common examples. To help you get started, we've selected a few @angular/service-worker examples, based on popular ...
Read more >
Using Service Workers - Web APIs | MDN
Registering your worker. The first block of code in our app's JavaScript file — app.js — is as follows. This is our entry...
Read more >
MV1020 Title/Registration Correction Request
To receive a corrected Certificate of Vehicle Registration, vehicle title, ... Registration - i.e. wrong weight class, wrong registration period, etc.
Read more >
Title and Registration FAQ Vehicle Services
The license plate registration renewal notice is sent out as a courtesy reminder, ... My pre-printed renewal form has the wrong vehicle information....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found