wesleyyoung / perch-query-builder

Dynamically build TypeORM queries based on GraphQL queries for NestJS and TypeORM
GNU General Public License v3.0
45 stars 9 forks source link

Error starting the project with this package #3

Closed brilvio closed 3 years ago

brilvio commented 3 years ago

Describe the bug After installing the module the project breaks


node_modules/perch-query-builder/dist/constants/index.d.ts:1:15 - error TS2307: Cannot find module './ASC' or its corresponding type declarations.

1 export * from './ASC';
                ~~~~~~~

node_modules/perch-query-builder/dist/constants/index.d.ts:2:15 - error TS2307: Cannot find module './DESC' or its corresponding type declarations.

2 export * from './DESC';
                ~~~~~~~~

node_modules/perch-query-builder/dist/constants/index.d.ts:3:15 - error TS2307: Cannot find module './ORDER' or its corresponding type declarations.

3 export * from './ORDER';
                ~~~~~~~~~

node_modules/perch-query-builder/dist/types/query-order.d.ts:1:10 - error TS2305: Module '"../constants"' has no exported member 'ORDER'.

1 import { ORDER } from "../constants";
           ~~~~~

To Reproduce 1 - Install the module 2 - Start the project

Expected behavior Works

Screenshots image

As you can see it is exporting ASC (uppercase) but the file is in lowercase, looking at the repository the file is named in uppercase as well, I think you need to push a new version to npm.

Desktop (please complete the following information):

brilvio commented 3 years ago

I cloned the repository and yeah the version on NPM differs from the version here.

image

wesleyyoung commented 3 years ago

I just re-published to npm with updated patch version 1.1.15. Is it working for you now?

brilvio commented 3 years ago

Yes, thanks for this package as well it is really helpfull.

wesleyyoung commented 3 years ago

No problem. If you have ideas for features or implementation feel free to message me or submit a PR