Skip to content

Install issue #283

@knutsoned

Description

@knutsoned

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

> rpgjs@4.0.0 build:compiler
> cd packages/compiler && npm run build


> @rpgjs/compiler@4.3.0 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions