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

Install issue #283

Open
knutsoned opened this issue Feb 23, 2024 · 0 comments
Open

Install issue #283

knutsoned opened this issue Feb 23, 2024 · 0 comments

Comments

@knutsoned
Copy link

On a Mac with MacOS 13.6.3 and node 20.11.1. After cloning the repo, npm install produces this error:

lerna success Bootstrapped 27 packages

> [email protected] build:compiler
> cd packages/compiler && npm run build


> @rpgjs/[email protected] build
> tsc && npm run build:browser

src/index.ts:31:18 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'string'.

31         generate(type, directory)
                    ~~~~

src/index.ts:45:25 - error TS2339: Property 'startsWith' does not exist on type '{}'.

45         if (!moduleName.startsWith('@rpgjs') && !moduleName.startsWith('rpgjs')) {
                           ~~~~~~~~~~

src/index.ts:45:61 - error TS2339: Property 'startsWith' does not exist on type '{}'.

45         if (!moduleName.startsWith('@rpgjs') && !moduleName.startsWith('rpgjs')) {
                                                               ~~~~~~~~~~

src/index.ts:49:13 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'string'.

49         add(moduleName)
               ~~~~~~~~~~

src/index.ts:51:54 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type '(yargs: any) => any' is not assignable to parameter of type '{ [key: string]: Options; }'.
      Index signature for type 'string' is missing in type '(yargs: any) => any'.

51     .command('dev', 'Run Vite in local development', (yargs) => {
                                                        ~~~~~~~~~~~~

  ../../../node_modules/@types/yargs/index.d.ts:170:9
    170         command<O extends { [key: string]: Options }>(
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    171             command: string | readonly string[],
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
    176             deprecated?: boolean | string,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    177         ): Argv<T>;
        ~~~~~~~~~~~~~~~~~~~
    The last overload is declared here.

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