cube icon indicating copy to clipboard operation
cube copied to clipboard

api-gateway: TS compilation error (files missing from NPM package)

Open mfulop opened this issue 2 years ago • 3 comments

Describe the bug The API Gateway npm package is missing files from src/types. The source folder includes several .d files which are missing from the published package, causing compilation errors in TS environments.

Version: 0.29.57

mfulop avatar May 15 '22 17:05 mfulop

Yep, all *.d.ts files are not included in the dist bundle (see https://www.unpkg.com/browse/@cubejs-backend/[email protected]/dist/src/types/) and only enums.ts gets released.

Typescript does not copy .d.ts files during the build process because it does not transpile them. The solution is to either copy those files manually (during the build), or rename them to .ts so tsc picks them up.

eugene1g avatar May 16 '22 17:05 eugene1g

@buntarb Any timeline on this getting fixed?

parkerself22 avatar Jul 19 '22 12:07 parkerself22

@parkerself22 @eugene1g @mfulop

hi there, hope you're doing great; please check this out #5132 🙏

frolovdev avatar Sep 15 '22 18:09 frolovdev