POST https://localhost:44351/Common/SearchAvailableTechList 500(内部服务器错误)

POST https://localhost:44351/Common/SearchAvailableTechList 500(Internal Server Error)

我在浏览器控制台中遇到错误

POST https://localhost:44351/Common/SearchAvailableTechList 500(Internal Server Error) 

SignalR 文件 javascript 代码:

function TechList(Id, Id2, Id3) {
        if (Id!= "" && Id2!= "") {
            $.ajax({
                url: $("#TechListUrl").val(),
                type: "post",
                dataType: "json",

在 javascript 中捆绑后,它看起来像:

function TechList(n, t, i) {
    n != "" && t != "" && $.ajax({
        url: $("#TechListUrl").val(),
        type: "post",
        dataType: "json",

捆绑后如何获取:

function TechList(n, t, i) {
    (n != "" && t != "")
{
$.ajax({
        url: $("#TechListUrl").val(),
        type: "post",
        dataType: "json",

也许 $ 正在干扰 Bundler。尝试将 $ 替换为 jQuery.