You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
route-styles.js:13 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'on')
at Object.initialize (route-styles.js:13:1)
at index.js:127:1
at Vertices.each (dag-map.js:192:1)
at Vertices.walk (dag-map.js:121:1)
at DAG.each (dag-map.js:66:1)
at DAG.topsort (dag-map.js:72:1)
at Class._runInitializer (index.js:139:1)
at Class.runInstanceInitializers (index.js:125:1)
at Class._bootSync (instance.js:86:1)
at instance.js:63:1
ember-component-css/instance-initializers/route-styles.js
Error at the line:
router.on('routeDidChange',function(_ref){
Full trace:
define("ember-component-css/instance-initializers/route-styles",["exports","ember-component-css/utils/init-route-styles"],function(_exports,_initRouteStyles){"use strict";Object.defineProperty(_exports,"__esModule",{value: true});_exports.default=void0;_exports.initialize=initialize;function_typeof(obj){"@babel/helpers - typeof";return_typeof="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator ? function(obj){returntypeofobj;} : function(obj){returnobj&&"function"==typeofSymbol&&obj.constructor===Symbol&&obj!==Symbol.prototype ? "symbol" : typeofobj;},_typeof(obj);}// This file is removed from the build in Ember < 3.6functioninitialize(appInstance){varrouter=appInstance.lookup('service:router');router.on('routeDidChange',function(_ref){varto=_ref.to;if(likeRouteInfo(to)){(0,_initRouteStyles.default)(appInstance,nestedRouteNames(to));}});
Versions:
ember-source: 3.28.11
ember-engines: 0.8.23 or 0.9.0
ember-component-css: 0.8.1
Node 16
The text was updated successfully, but these errors were encountered:
When I rename the
'router'
to{ 'host-router': 'router' }
in all my engines.https://ember-engines.com/docs/deprecations#-use-alias-for-inject-router-service-from-host-application
I have this error from
ember-component-css
:ember-component-css/instance-initializers/route-styles.js
Error at the line:
Full trace:
Versions:
The text was updated successfully, but these errors were encountered: