Vue-storefront: Globby node module causing errors on build - Vue storefront api

Created on 24 Apr 2020  路  3Comments  路  Source: DivanteLtd/vue-storefront

When trying to build a fresh api project after migration is done I get following errors which are connected to the globby module :

node_modules/globby/index.d.ts:6:14 - error TS1005: ';' expected.

6       | readonly string[]
                   ~~~~~~

node_modules/globby/index.d.ts:6:21 - error TS1011: An element access expression should take an argument.

6       | readonly string[]


node_modules/globby/index.d.ts:7:23 - error TS1005: ',' expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                            ~~~~~~

node_modules/globby/index.d.ts:7:29 - error TS1005: ',' expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                  ~

node_modules/globby/index.d.ts:7:30 - error TS1109: Expression expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                   ~

node_modules/globby/index.d.ts:7:31 - error TS1005: ':' expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                    ~

node_modules/globby/index.d.ts:7:55 - error TS1005: ',' expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                                            ~~~~~~

node_modules/globby/index.d.ts:7:61 - error TS1005: ',' expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                                                  ~

node_modules/globby/index.d.ts:7:62 - error TS1109: Expression expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                                                   ~

node_modules/globby/index.d.ts:7:63 - error TS1005: ':' expected.

7       | {files?: readonly string[]; extensions?: readonly string[]};
                                                                    ~

node_modules/globby/index.d.ts:51:30 - error TS1005: ';' expected.

51      readonly ignore?: readonly string[];
                                   ~~~~~~

node_modules/globby/index.d.ts:51:37 - error TS1011: An element access expression should take an argument.

51      readonly ignore?: readonly string[];


node_modules/globby/index.d.ts:55:1 - error TS1128: Declaration or statement expected.

55 }
   ~

node_modules/globby/index.d.ts:104:31 - error TS1005: ',' expected.

104     patterns: string | readonly string[],
                                    ~~~~~~

node_modules/globby/index.d.ts:104:37 - error TS1005: ',' expected.

104     patterns: string | readonly string[],
                                          ~

node_modules/globby/index.d.ts:118:31 - error TS1005: ',' expected.

118     patterns: string | readonly string[],
                                    ~~~~~~

node_modules/globby/index.d.ts:118:37 - error TS1005: ',' expected.

118     patterns: string | readonly string[],
                                          ~

node_modules/globby/index.d.ts:143:31 - error TS1005: ',' expected.

143     patterns: string | readonly string[],
                                    ~~~~~~

node_modules/globby/index.d.ts:143:37 - error TS1005: ',' expected.

143     patterns: string | readonly string[],
                                          ~

node_modules/globby/index.d.ts:155:31 - error TS1005: ',' expected.

155     patterns: string | readonly string[],
                                    ~~~~~~

node_modules/globby/index.d.ts:155:37 - error TS1005: ',' expected.

155     patterns: string | readonly string[],
                                          ~

node_modules/globby/index.d.ts:169:31 - error TS1005: ',' expected.

169     patterns: string | readonly string[],
                                    ~~~~~~

node_modules/globby/index.d.ts:169:37 - error TS1005: ',' expected.

169     patterns: string | readonly string[],
                                          ~
Found 23 errors.

Normal bug

All 3 comments

This was fixed by downgrading @types/express suggested here:

https://github.com/DivanteLtd/vue-storefront/issues/4275#issuecomment-618944906

Author's solution actually didn't solve the issue for me. Managed to fix it by downgrading "merge-graphql-schemas" to 1.5.8 (had 1.7.8 previously):
yarn add [email protected]

@raideer yes thanks, this helped me:

yarn add @types/[email protected] @types/[email protected] -W -D
yarn add [email protected] -W
Was this page helpful?
0 / 5 - 0 ratings