Description
I am struck while registering service worker. I have created sample project there i have added firebase-messaging-sw.js file at root level like this at root level
and manifest.json file later i did " grunt serve " after launching app able to register service worker and token is generated , and it is working fine .
after that I tried Implementing that feature in actual working project , I have added at root level giving
Uncaught Error: [$http://injector:modulerr] Failed to instantiate module App due to:
Error: [$http://injector:modulerr] Failed to instantiate module lazyModel due to:
Error: [$http://injector:nomod] Module 'lazyModel' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. this Error.
and also i have added manifest.json file at root level its not loading in browser .
Now the question is for " grunt serve " project is working fine , for " grunt build " generated a dist added that that in war file below the WEB INF . why it is not working for grunt build ??
dist is not not packging the file.
for my actual project the path is http://localhost:8080/XXXXXX/index.html#/core/login i am using this path "grunt build " generated dist .
for my sample project http://localhost:9000/#/ used grunt serve.