nango icon indicating copy to clipboard operation
nango copied to clipboard

index.d.ts file missing in frontend package

Open gailuron1964 opened this issue 3 years ago • 3 comments

The @nangohq/pizzly-frontend package is missing index.d.ts file, which causes issue for TypeScript projects.

Issue seen with v 0.3.6.

After running:

npm i @nangohq/pizzly-frontend

Imports in the TypeScript project causes VSCode to complain: Screen Shot 2022-12-12 at 12 29 45 PM

gailuron1964 avatar Dec 12 '22 11:12 gailuron1964

index.js.map is also missing. Which causes warning to be thrown at runtime.

gailuron1964 avatar Dec 12 '22 11:12 gailuron1964

Thanks for raising this @gailuron1964 We have an issue at #266 for frontend packaging improvements, can you add your points there?

I am surprised a missing source map file is throwing a warning at runtime, is that something you setup for your dev environment?

rguldener avatar Dec 12 '22 11:12 rguldener

Fixed by https://github.com/NangoHQ/Pizzly/commit/5ee00c9b6b987768b1f9b997872144bc01c95946

bastienbeurier avatar Dec 12 '22 15:12 bastienbeurier