question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search results page angular Uncaught Errors

See original GitHub issue

When I try to use the search function on my shop implementation I am getting the following two errors on the browser console:

Uncaught SyntaxError: Unexpected token &

Uncaught Error: [$injector:modulerr] Failed to instantiate module myShop due to:
Error: [$injector:nomod] Module 'myShop' is not available!
You either misspelled the module name or forgot to load it.
If registering a module ensure that you specify the dependencies as the second argument.

The first error appears to be caused by the data|rest_json in this line in the results.html template {% addtoblock "ng-config" %}['searchResultsProvider', function(provider) { provider.setSearchResults({{ data|rest_json }}); }]{% endaddtoblock %}

The error seems to be caused by the first & in: provider.setSearchResults({"count":1,"next":null,"previous":null,"results":[{"product_name":"...

Any ideas what might cause this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jriefcommented, Nov 24, 2016

Thanks. Never encountered a bytestring here. Anyway I patched it and it will be part of 0.9.4.

0reactions
racitupcommented, Mar 17, 2017

Thanks Jacob!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise): TypeError: Unable to get property ...
When the template first displays, the filterdResult used here let event of filterdResult.Results is not yet set. Hence the reason it tells ...
Read more >
RxJs Error Handling: Complete Practical Guide
Error handling is an essential part of RxJs, as we will need it in just about any reactive program that we write. Error...
Read more >
Error Handling with Angular 8 - Tips and Best Practices - Rollbar
One traditional way of handling errors in Angular is to provide an ErrorHandler class. This class can be extended to create your own...
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
Error Messages | Maps JavaScript API - Google Developers
Certain error conditions may also occur, which result in the display of a darkened watermarked map. If you are NOT the website owner,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found