Skip to content

--routing creates no default route #2438

Closed

Description

@cre8

When you create a fresh project with --routing the browser console prints an error:
Uncaught (in promise): Error: Cannot match any routes: ''

A minimal project should not create any errors that could confuse the user.
So maybe there should be a component for this route that handles this error or the feature should be disabled if you want to have it as small as possible.

Activity

  1. wingsuitist commented on Oct 4, 2016

    @wingsuitist

    At the moment the import of the routing module in app.module.ts refers to an inexisting file: import { AppnameRoutingModule } from './Appname-routing.module';

    It should refer to: import { TravelingRoutingModule } from './app-routing.module';

  2. filipesilva commented on Oct 9, 2016

    @filipesilva
    Contributor

    Fixed in #2435

  3. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions