ember-cli-inject-live-reload icon indicating copy to clipboard operation
ember-cli-inject-live-reload copied to clipboard

DEPRECATION: Upgrade ember-cli-inject-live-reload version to 1.10.0 or above

Open boesi opened this issue 5 years ago • 1 comments

I get the message DEPRECATION: Upgrade ember-cli-inject-live-reload version to 1.10.0 or above when I use the option "liveReloadOptions": {...} or "liveReloadJsUrl": "...".

When I remove liveReloadOptions the message goes away.

$ ember v
ember-cli: 3.10.1
node: 12.4.0
os: win32 x64
$ npm ls ember-cli-inject-live-reload ember-source
[...]
+-- [email protected]
`-- [email protected]

I solved it by now by changing my apache config to use mod_proxy_wstunnel. But how can I use liveReloadOptions without a deprecation warning?

boesi avatar Jun 17 '19 06:06 boesi

I was running into this, in addition to a 404 I was getting. Browsing the addon code I found that it was actually watching an undocumented property liveReloadBaseUrl here.

Setting this in .ember-cli solved both the deprecation message and the 404 for us.

EDIT: browsing the issues I see there are quite a few related to this property, so seems to be a common pitfall. FWIW, I couldn't get the new options hash to work via .ember-cli - though it sounds like it works fine in the command line

linearza avatar Sep 06 '23 19:09 linearza