Gary-Airwallex edited a comment on issue #150: 基于淘宝镜像的yarn.lock在Gitlab CI上出现连接问题
URL: 
https://github.com/apache/incubator-apisix-dashboard/issues/150#issuecomment-597460091
 
 
   I tried building the new dashboard, but I'm not sure how to add 
services/routes/plugins with that?And for the issues with taobao mirror which 
occurred on dashboard v1.0: removing yarn.lock and reinstalling causes the 
following errors (while running yarn `build:prod`):
   
        ERROR  Failed to compile with 6 errors                                  
                                                                                
                                      下午1:41:20
   
        error  in 
my/path/incubator-apisix-dashboard/src/components/HeaderSearch/index.vue
   
       ERROR in 
my/path/incubator-apisix-dashboard/src/components/HeaderSearch/index.vue
       76:18 Generic type 'Fuse<T, O>' requires 2 type argument(s).
           74 |   private options: RouteConfig[] = []
           75 |   private searchPool: RouteConfig[] = []
         > 76 |   private fuse?: Fuse<RouteConfig>
              |                  ^
           77 | 
           78 |   get routes() {
           79 |     return PermissionModule.routes
   
        error  in 
my/path/incubator-apisix-dashboard/src/layout/components/TagsView/index.vue
   
       ERROR in 
my/path/incubator-apisix-dashboard/src/layout/components/TagsView/index.vue
       207:23 Argument of type 'ITagView' is not assignable to parameter of 
type 'RawLocation'.
         Type 'ITagView' is not assignable to type 'Location'.
           Types of property 'name' are incompatible.
             Type 'string | null | undefined' is not assignable to type 'string 
| undefined'.
               Type 'null' is not assignable to type 'string | undefined'.
           205 | 
           206 |   private closeOthersTags() {
         > 207 |     this.$router.push(this.selectedTag)
               |                       ^
           208 |     TagsViewModule.delOthersViews(this.selectedTag)
           209 |     this.moveToCurrentTag()
           210 |   }
   
        error  in 
my/path/incubator-apisix-dashboard/src/layout/components/TagsView/index.vue
   
       ERROR in 
my/path/incubator-apisix-dashboard/src/layout/components/TagsView/index.vue
       223:25 Argument of type 'ITagView' is not assignable to parameter of 
type 'RawLocation'.
         Type 'ITagView' is not assignable to type 'Location'.
           221 |     const latestView = visitedViews.slice(-1)[0]
           222 |     if (latestView) {
         > 223 |       this.$router.push(latestView)
               |                         ^
           224 |     } else {
           225 |       // Default redirect to the home page if there is no 
tags-view, adjust it if you want
           226 |       if (view.name === 'Dashboard') {
   
        error  in 
my/path/incubator-apisix-dashboard/src/store/modules/tags-view.ts
   
       ERROR in 
my/path/incubator-apisix-dashboard/src/store/modules/tags-view.ts
       55:35 Argument of type 'string | null | undefined' is not assignable to 
parameter of type 'string | undefined'.
         Type 'null' is not assignable to type 'string | undefined'.
           53 |   @Mutation
           54 |   private ADD_CACHED_VIEW(view: ITagView) {
         > 55 |     if (this.cachedViews.includes(view.name)) return
              |                                   ^
           56 |     if (!view.meta.noCache) {
           57 |       this.cachedViews.push(view.name)
           58 |     }
   
        error  in 
my/path/incubator-apisix-dashboard/src/store/modules/tags-view.ts
   
       ERROR in 
my/path/incubator-apisix-dashboard/src/store/modules/tags-view.ts
       57:29 Argument of type 'string | null | undefined' is not assignable to 
parameter of type 'string | undefined'.
         Type 'null' is not assignable to type 'string | undefined'.
           55 |     if (this.cachedViews.includes(view.name)) return
           56 |     if (!view.meta.noCache) {
         > 57 |       this.cachedViews.push(view.name)
              |                             ^
           58 |     }
           59 |   }
           60 | 
   
        error  in my/path/incubator-apisix-dashboard/src/views/login/index.vue
   
       ERROR in my/path/incubator-apisix-dashboard/src/views/login/index.vue
       105:10 Module 
'"../../../../../../..my/path/incubator-apisix-dashboard/node_modules/vuex/types"'
 has no exported member 'Dictionary'.
           103 | import { Component, Vue, Watch } from 'vue-property-decorator'
           104 | import { Route } from 'vue-router'
         > 105 | import { Dictionary } from 'vuex'
               |          ^
           106 | import { Form as ElForm, Input } from 'element-ui'
           107 | import { UserModule } from '@/store/modules/user'
           108 | import { isValidUsername } from '@/utils/validate'
   
        ERROR  Build failed with errors.
       error Command failed with exit code 1.
   
   And the packages' versions in my generated lock file are different  from the 
ones in yarn.lock from repo. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to