Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当前master分支无法正常编译 #21

Open
mnixry opened this issue Sep 11, 2020 · 0 comments
Open

当前master分支无法正常编译 #21

mnixry opened this issue Sep 11, 2020 · 0 comments

Comments

@mnixry
Copy link

mnixry commented Sep 11, 2020

编译日志如下:

yarn run v1.22.5
$ vue-cli-service build

⠙  Building for production...Starting type checking service...
Using 1 worker with 2048MB memory limit
⠦  Building for production...Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
⠙  Building for production...Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
⠧  Building for production...(node:63351) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:63351) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:63351) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:63351) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:63351) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:63351) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
⠸  Building for production...

 ERROR  Failed to compile with 8 errors                                                                                   11:46:17 PM

 error  in /home/mixision/Documents/qb-web/src/Api.ts

ERROR in /home/mixision/Documents/qb-web/src/Api.ts
57:38 Argument of type 'unknown' is not assignable to parameter of type 'string | Blob'.
  Type '{}' is missing the following properties from type 'Blob': size, type, slice
    55 |             const formData = new FormData();
    56 |             for (const [key, value] of Object.entries(params)) {
  > 57 |                 formData.append(key, value);
       |                                      ^
    58 |             }
    59 | 
    60 |             for (const torrent of torrents) {

 error  in /home/mixision/Documents/qb-web/src/components/dialogs/LogsDialog.vue

ERROR in /home/mixision/Documents/qb-web/src/components/dialogs/LogsDialog.vue
94:9 Type '(state: any) => any' is not assignable to type 'ComputedOptions<any> | (() => any)'.
  Type '(state: any) => any' is not assignable to type '() => any'.
    92 |                 return this.$vuetify.breakpoint.xsOnly;
    93 |             },
  > 94 |             reverseLogs(state){
       |         ^
    95 |                 return _.reverse(_.clone(state.logs));
    96 |             }
    97 |         },

 error  in /home/mixision/Documents/qb-web/src/components/dialogs/LogsDialog.vue

ERROR in /home/mixision/Documents/qb-web/src/components/dialogs/LogsDialog.vue
95:20 '_' refers to a UMD global, but the current file is a module. Consider adding an import instead.
    93 |             },
    94 |             reverseLogs(state){
  > 95 |                 return _.reverse(_.clone(state.logs));
       |                    ^
    96 |             }
    97 |         },
    98 |         methods: {

 error  in /home/mixision/Documents/qb-web/src/components/dialogs/LogsDialog.vue

ERROR in /home/mixision/Documents/qb-web/src/components/dialogs/LogsDialog.vue
95:30 '_' refers to a UMD global, but the current file is a module. Consider adding an import instead.
    93 |             },
    94 |             reverseLogs(state){
  > 95 |                 return _.reverse(_.clone(state.logs));
       |                              ^
    96 |             }
    97 |         },
    98 |         methods: {

 error  in /home/mixision/Documents/qb-web/src/components/dialogs/Setting.vue

ERROR in /home/mixision/Documents/qb-web/src/components/dialogs/Setting.vue
874:34 Property 'split' does not exist on type 'unknown'.
    872 |             schedule_from: {
    873 |                 set(val) {
  > 874 |                     const time = val.split(":");
        |                                  ^
    875 |                     if (time.length > 1) {
    876 |                         this.schedule_from_hour = parseInt(time[0]);
    877 |                         this.schedule_from_min = parseInt(time[1]);

 error  in /home/mixision/Documents/qb-web/src/components/dialogs/Setting.vue

ERROR in /home/mixision/Documents/qb-web/src/components/dialogs/Setting.vue
887:34 Property 'split' does not exist on type 'unknown'.
    885 |             schedule_to: {
    886 |                 set(val) {
  > 887 |                     const time = val.split(":");
        |                                  ^
    888 |                     if (time.length > 1) {
    889 |                         this.schedule_to_hour = parseInt(time[0]);
    890 |                         this.schedule_to_min = parseInt(time[1]);

 error  in /home/mixision/Documents/qb-web/src/components/dialogs/Setting.vue

ERROR in /home/mixision/Documents/qb-web/src/components/dialogs/Setting.vue
1095:26 Property 'closeDialog' does not exist on type 'Vue'.
    1093 |                             position: "top",
    1094 |                         });
  > 1095 |                         this.closeDialog();
         |                          ^
    1096 |                     });
    1097 | 
    1098 |             },

 error  in /home/mixision/Documents/qb-web/src/components/Drawer.vue

ERROR in /home/mixision/Documents/qb-web/src/components/Drawer.vue
197:99 Property 'savePath' does not exist on type '{ key: string; name: string; }'.
    195 |                         const title = category.name + ` (${value.length})`;
    196 |                         const append = `[${size}]`;
  > 197 |                         return {icon: "mdi-folder-open", title, key: category.key, savePath: category.savePath, append};
        |                                                                                                   ^
    198 |                     });
    199 |                 filterGroups.push({
    200 |                     icon: "mdi-menu-up",

 ERROR  Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant