NikxDa / actual-moneymoney

A CLI tool to import transactions from MoneyMoney to Actual.
3 stars 1 forks source link

Error when running "npm run build" #4

Closed MirkoDziadzka closed 9 months ago

MirkoDziadzka commented 9 months ago

how to reproduce

I'm running from the latest git version

commit 33394a7d3ee987dfe5ec59eb3b185c2f38a1dacf (origin/main, origin/HEAD)
Author: NikxDa <NikxDa@users.noreply.github.com>
Date:   Thu Jan 18 02:38:06 2024 +0100

with the following node + rpm

% node -v
v21.6.0
% npm -v
10.2.4

And get the following error on npm run build

% npm run build

> actual-moneymoney@1.0.0 build
> npx tsc

src/commands/import.command.ts:5:23 - error TS1261: Already included file name '/Users/mirko/actual-moneymoney/src/utils/ActualApi.ts' differs from file name '/Users/mirko/actual-moneymoney/src/utils/actualApi.ts' only in casing.
  The file is in the program because:
    Imported via '../utils/ActualApi.js' from file '/Users/mirko/actual-moneymoney/src/commands/import.command.ts'
    Imported via './ActualApi.js' from file '/Users/mirko/actual-moneymoney/src/utils/Importer.ts'
    Matched by default include pattern '**/*'
  File is ECMAScript module because '/Users/mirko/actual-moneymoney/package.json' has field "type" with value "module"

5 import ActualApi from '../utils/ActualApi.js';
                        ~~~~~~~~~~~~~~~~~~~~~~~

  src/utils/Importer.ts:3:23
    3 import ActualApi from './ActualApi.js';
                            ~~~~~~~~~~~~~~~~
    File is included via import here.

Found 1 error in src/commands/import.command.ts:5

Note that the build succeeds, the dist directory is created and usable/