Skip to content

Syntax error, unrecognized expression: #/... #1423

@edamron

Description

@edamron

I recently started getting these errors when I click on a ui-sref link, EVEN THOUGH it still takes me to the given state / templateUrl. Here's a small snippet from my app.js file:

        .state('prepare', {
            abtract: true,
            url: '/prepare',
            templateUrl: 'prepare/prepare.html',
            controller: 'prepareController'
        })
            .state('prepare.propinss', {
                url: '/propinss',
                templateUrl: 'prepare/question.html'
            })

The abstract state ('prepare') doesn't cause an error to be recorded in the log, but the 'prepare.propinss' state does cause it:

Uncaught Error: Syntax error, unrecognized expression: #/prepare/propinss

BTW, the actual error itself comes from jquery.js:1437 (Sizzle.error = func...).

It seems I can safely ignore this error, but I'd prefer to eliminate it, just in case it does eventually cause me a real issue.

Thanks!

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