vue3+vite import jquery bootstrap popper build error

7lrncoxx  于 2023-08-04  发布在  jQuery
关注(0)|答案(1)|浏览(153)

当我运行npm install dev时,下面的错误信息; x1c 0d1x的数据
当我运行npm install build时,下面的错误信息和web是空白的;


下面是代码的一部分

// index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <!-- Page Title -->
      <title>Test</title>
      <!-- / -->
      <!---Font Icon-->
      <link href="src/assets/css/fontawesome-all.min.css" rel="stylesheet">
      <link href="src/assets/css/themify-icons.css" rel="stylesheet">
      <!-- / -->
      <!-- Plugin CSS -->
      <link href="src/assets/css/bootstrap.min.css" rel="stylesheet">
      <link href="src/assets/css/owl.carousel.min.css" rel="stylesheet">
      <link href="src/assets/css/magnific-popup.css" rel="stylesheet">
      <!-- / -->
      <!-- Theme Style -->
      <link href="src/assets/css/styles.css" rel="stylesheet">
      <link href="src/assets/css/default.css" rel="stylesheet" id="color_theme">
      <!-- / -->
      <!-- Favicon -->
      <!-- / -->

      <!-- jQuery -->
      <script type="module"  src="src/assets/js/jquery-3.2.1.min.js"></script>
      <script type="module"  src="src/assets/js/jquery-migrate-3.0.0.min.js"></script>
      <!-- Plugins -->
      <script type="module"  src="src/assets/js/popper.min.js"></script>
      <script type="module"  src="src/assets/js/bootstrap.min.js"></script>
      <script type="module"  src="src/assets/js/owl.carousel.min.js"></script>
      <script type="module"  src="src/assets/js/jquery.magnific-popup.min.js"></script>
      <script type="module"  src="src/assets/js/particles.min.js"></script>
      <script type="module"  src="src/assets/js/particles-app.js"></script>
      <!-- custom -->
      <script type="module"  src="src/assets/js/custom.js"></script>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>

个字符
这是项目结构

如何解决这个问题your text

kyxcudwk

kyxcudwk1#

我最终通过将particles.min.js替换为particle.vue解决了这个问题

相关问题