Click here to Skip to main content
15,884,962 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am not using TypeScript in my website.
It is not accepting my setup jquery code:
HTML
<script type="text/javascript" src="~/Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
    ...

Error Code:
Warning	TS7027	Unreachable code detected.	
TS7027	Unreachable code detected. C:path\Scripts\jquery-1.4.1-vsdoc.js	4579	Active
Warning	TS7027	Unreachable code detected. C:\Path\jquery-1.4.1.js	3612	Active
Warning	TS7027	Unreachable code detected. C:\Path\Scripts\jquery-1.4.1.js	3612	Active


What I have tried:

Never got a TypeScript error before that is blocking my jquery-1.4.1,js script.
Posted
Updated 13-Apr-17 20:55pm

1 solution

Quote:
Never got a TypeScript error before that is blocking my jquery-1.4.1,js script.

the error message tells you that there is a TypeScript error in the jquery library.
It means that jquery is written in Typescript, not your code.

You have to show full code of your page in order to have someone to find the
problem.
To narrow the problem, try to comment part of your code to see when the problem disappear.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900