Closed Alonski closed 2 years ago
Hello,
In one of my ember apps whenever ember g ... is run I get this error:
ember g ...
➜ App git:(branch) ember g service locale installing service Cannot read property 'options' of undefined
Debugging this I found that this fails:
- stack: TypeError: Cannot read property 'options' of undefined at Class.config (/App/node_modules/ember-cli-workbox/index.js:16:31)
The line in question: https://github.com/BBVAEngineering/ember-cli-workbox/blob/master/index.js#L15
this.app is undefined for some reason while ember g is run causing it to fail. Config from environment.js:
this.app
ember g
workbox: { // Configures workbox to only precache SVG images. swDest: "/service-workers/sw.js", globPatterns: ["**/*.svg"], globDirectory: "./images", modifyURLPrefix: { "": "images/" } },
Is anything else needed to debug this?
:tada: This issue has been resolved in version 3.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hello,
In one of my ember apps whenever
ember g ...
is run I get this error:Debugging this I found that this fails:
The line in question: https://github.com/BBVAEngineering/ember-cli-workbox/blob/master/index.js#L15
this.app
is undefined for some reason whileember g
is run causing it to fail. Config from environment.js:Is anything else needed to debug this?