liquidjs icon indicating copy to clipboard operation
liquidjs copied to clipboard

Typescript types missing in v10.16.5

Open theycallmeswift opened this issue 1 year ago • 2 comments
trafficstars

TS7016: Could not find a declaration file for module 'liquidjs'. '/Users/theycallmeswift/dev/foo/node_modules/liquidjs/dist/liquid.node.mjs' implicitly has an 'any' type.
  Try `npm i --save-dev @types/liquidjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'liquidjs';`

Works in 10.16.4, but breaks when the packages is upgraded. Likely related to the ESM changes.

theycallmeswift avatar Aug 28 '24 01:08 theycallmeswift

I cannot reproduce using this project: https://github.com/harttle/liquidjs/tree/master/demo/typescript

Could you provide a runnable case, maybe a temporary repo, or create a PR to add a repo under /demo?

harttle avatar Aug 28 '24 15:08 harttle

can confirm that the most recent version didn't have types, downgraded to 10.16.1 (the version I was using before) which worked. Don't have a case to reproduce unfortunately

skorfmann avatar Aug 29 '24 07:08 skorfmann

I realize this is an old issue, but FWIW I had no issue with types in 10.22.0

kfranqueiro avatar Oct 24 '25 18:10 kfranqueiro

TS7016: Could not find a declaration file for module 'liquidjs'. '/Users/theycallmeswift/dev/foo/node_modules/liquidjs/dist/liquid.node.mjs' implicitly has an 'any' type.
  Try `npm i --save-dev @types/liquidjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'liquidjs';`

Works in 10.16.4, but breaks when the packages is upgraded. Likely related to the ESM changes.

roberthawkins671-pixel avatar Nov 04 '25 22:11 roberthawkins671-pixel