TypeError:t.fx在尝试将jQuery UI添加到Angular 4应用程序时未定义

TypeError:t.fx在尝试将jQuery UI添加到Angular 4应用程序时未定义,jquery,angular,jquery-ui,typescript,npm,Jquery,Angular,Jquery Ui,Typescript,Npm,我正在尝试将jQuery UI添加到应用程序中,因为我需要访问一些滑块。我已使用以下设备安装了jQuery的typings: npm install @types/jquery --save jQueryUI键入的内容是什么 npm install @types/jqueryui --save 我已经将jQuery和jQuery UI CDN引用添加到index.html <!doctype html> <html> <head> <meta c

我正在尝试将jQuery UI添加到应用程序中,因为我需要访问一些滑块。我已使用以下设备安装了jQuery的typings:

npm install @types/jquery --save
jQueryUI键入的内容是什么

npm install @types/jqueryui --save
我已经将jQuery和jQuery UI CDN引用添加到index.html

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>SimutronApp</title>
  <base href="/">
  <script
    src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
    integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
    crossorigin="anonymous">
  </script>
  <script
    src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
    integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
    crossorigin="anonymous">
  </script> 
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root>Loading...</app-root>
</body>
</html>
当Chrome抛出:

cannot read property 'step' of undefined at <String>.anonymous
无法读取未定义的at.anonymous的属性'step'

在同一条线上。有谁能告诉我将jQuery UI添加到Angular 4项目的正确方法吗?

jQuery Slim删除了jQuery UI依赖的一些功能

替换

  <script
    src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
    integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
    crossorigin="anonymous">

与:



我需要答案,但我的答案仍然是相同的错误uncaught TypeError:t.fx未定义
  <script
    src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
    integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
    crossorigin="anonymous">
<script src="http://code.jquery.com/jquery-3.2.1.min.js"
        integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
        crossorigin="anonymous"></script>