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

Vesper Build failure #60

Open
AaronNGray opened this issue Jul 30, 2021 · 2 comments
Open

Vesper Build failure #60

AaronNGray opened this issue Jul 30, 2021 · 2 comments

Comments

@AaronNGray
Copy link

AaronNGray commented Jul 30, 2021

vesper fails to build either with tsc or gulp

:\Users\aaron\GitHub\AaronNGray\vesper>gulp
[03:28:31] Requiring external module ts-node/register
ReferenceError: primordials is not defined
    at fs.js:47:5
    at req_ (C:\Users\aaron\GitHub\AaronNGray\vesper\node_modules\natives\index.js:137:5)
    at Object.req [as require] (C:\Users\aaron\GitHub\AaronNGray\vesper\node_modules\natives\index.js:54:10)
    at Object.<anonymous> (C:\Users\aaron\GitHub\AaronNGray\vesper\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
C:\Users\aaron\GitHub\AaronNGray\vesper>tsc
../../../AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'.

41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
        ~~~~~~~~~~~~~~

  node_modules/@types/node/index.d.ts:78:11
    78 interface IteratorResult<T> { }
                 ~~~~~~~~~~~~~~
    'IteratorResult' was also declared here.

node_modules/@types/node/index.d.ts:78:11 - error TS2300: Duplicate identifier 'IteratorResult'.

78 interface IteratorResult<T> { }
             ~~~~~~~~~~~~~~

  ../../../AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6
    41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
            ~~~~~~~~~~~~~~
    'IteratorResult' was also declared here.

src/commands/CommandUtils.ts:15:92 - error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?

15         return new Promise((ok, fail) => mkdirp(directory, (err: any) => err ? fail(err) : ok()));
                                                                                              ~~~~

  ../../../AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.promise.d.ts:33:34
    33     new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~
    An argument for 'value' was not provided.

src/metadata/ActionMetadataBuilder.ts:96:9 - error TS2322: Type 'string | number | symbol' is not assignable to type 'string'.
  Type 'number' is not assignable to type 'string'.

96         metadata.methodName = action.action;
           ~~~~~~~~~~~~~~~~~~~

src/metadata/ActionMetadataBuilder.ts:97:9 - error TS2322: Type 'string | number | symbol' is not assignable to type 'string'.
  Type 'number' is not assignable to type 'string'.

97         metadata.name = action.name || action.action;
           ~~~~~~~~~~~~~
Found 5 errors.

I have tried latest tsc.

@AaronNGray AaronNGray changed the title Build failure Vesper Build failure Jul 30, 2021
@AaronNGray
Copy link
Author

Getting the same on the later dependabot/npm_and_yarn%2Ftypeorm-0.2.25 branch too

@AaronNGray
Copy link
Author

AaronNGray commented Jul 30, 2021

building on [email protected] but not typescript@latest

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