Vue

作者: Rinaloving | 来源:发表于2023-01-24 23:59 被阅读0次
     ERROR  Failed to compile with 1 error                                                                                         下午11:57:13
    
     error  in ./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js&
    
    Module parse failed: Unexpected token (28:16)
    File was processed with these loaders:
     * C:\Users\Rina\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\config\vue-loader-v15-resolve-compat\vue-loader.js
    You may need an additional loader to handle the result of these loaders.
    |     //   }
    |     // }
    >     vnodes.push(<svg-icon icon-class={icon} />);
    |     //vnodes.push(<span slot="title">{title}</span>);
    |     //vnodes.push(title);
    
    ERROR in ./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& (C:\Users\Rina\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\config\vue-loader-v15-resolve-compat\vue-loader.js??vue-loader-options!./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js&) 28:16
    Module parse failed: Unexpected token (28:16)
    File was processed with these loaders:
     * C:\Users\Rina\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\config\vue-loader-v15-resolve-compat\vue-loader.js
    You may need an additional loader to handle the result of these loaders.
    |     //   }
    |     // }
    >     vnodes.push(<svg-icon icon-class={icon} />);
    |     //vnodes.push(<span slot="title">{title}</span>);
    |     //vnodes.push(title);
     @ ./src/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& 1:0-207 1:223-226 1:228-432 1:228-432
     @ ./src/layout/components/Sidebar/Item.vue 2:0-56 3:0-51 3:0-51 10:2-8
     @ C:\Users\Rina\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\config\vue-loader-v15-resolve-compat\vue-loader.js??vue-loader-options!./src/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js& 52:0-26 59:16-20
     @ ./src/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js& 1:0-214 1:230-233 1:235-446 1:235-446
     @ ./src/layout/components/Sidebar/SidebarItem.vue 2:0-63 3:0-58 3:0-58 9:2-8
     @ C:\Users\Rina\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\config\vue-loader-v15-resolve-compat\vue-loader.js??vue-loader-options!./src/layout/components/Sidebar/index.vue?vue&type=script&lang=js& 29:0-40 33:16-27
     @ ./src/layout/components/Sidebar/index.vue?vue&type=script&lang=js& 1:0-208 1:224-227 1:229-434 1:229-434
     @ ./src/layout/components/Sidebar/index.vue 2:0-57 3:0-52 3:0-52 9:2-8
     @ ./src/layout/components/index.js 2:0-46 2:0-46
     @ C:\Users\Rina\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\config\vue-loader-v15-resolve-compat\vue-loader.js??vue-loader-options!./src/layout/index.vue?vue&type=script&lang=js& 20:0-56 26:4-10 27:4-11 28:4-11
     @ ./src/layout/index.vue?vue&type=script&lang=js& 1:0-208 1:224-227 1:229-434 1:229-434
     @ ./src/layout/index.vue 2:0-57 3:0-52 3:0-52 10:2-8
     @ ./src/router/index.js 3:0-29 16:15-21 50:17-23
     @ ./src/main.js 40:0-29 58:2-8
    

    相关文章

      网友评论

          本文标题:Vue

          本文链接:https://www.haomeiwen.com/subject/hwudhdtx.html