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
Router.map(function () {
if (macroCondition(getOwnConfig<OwnBuildConfig>().styleGuideIncluded)) {
this.route('style-guide');
}
})
to conditionally add a route based on config.
When I now run ember generate route new-route the generation fails. (I'm guessing on the if condition as unrecognized token?)
➜ ember generate route test-route
installing route
create app/routes/test-route.ts
create app/templates/test-route.hbs
Unexpected token (25:50)
Stack Trace and Error Report: /var/folders/9n/3zhdhb8959j9y02w5yc05zxc0000gn/T/error.dump.398d37c04279098c44d50061a23a6941.log
The text was updated successfully, but these errors were encountered:
I have
to conditionally add a route based on config.
When I now run
ember generate route new-route
the generation fails. (I'm guessing on the if condition as unrecognized token?)The text was updated successfully, but these errors were encountered: