2

When I launch my minimal play2 application I can see an exception in the js console like:

GET http://localhost:9000/assets/javascripts/jquery.min.map 404 (Not Found) 

Why it happens? Is it known issue. I've seen some play-tool-projects on github that has this file there. By default I do not have this file in my "javascripts" folder. Should I?

1

2 Answers 2

5

The source map file maps the minified version of the code against the un-minified version so that you can access the real code while debugging.

The 404 error only appears when using the developer tools. To fix this, just download the correct version of your source map file. Mine for example was:

jquery-1.9.0.min.map

Then rename it to:

jquery.min.map

and move it in the javascripts directory.

Sign up to request clarification or add additional context in comments.

Comments

1

Try to map of the Assets controller in your conf/routes file.

GET /assets/javascripts/jquery.min.map

For more information read this documentation

Working with public assets

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.