flagsmith-js-client icon indicating copy to clipboard operation
flagsmith-js-client copied to clipboard

flagsmith isomorphic module declaration

Open timhbt opened this issue 1 year ago • 2 comments

Describe the bug

[email protected] (latest version). A typescript error is displayed after importing flagsmith/isomorphic:

Could not find a declaration file for module 'flagsmith/isomorphic'. '/home/xxx/node_modules/flagsmith/isomorphic.mjs' implicitly has an 'any' type.
  If the 'flagsmith' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'flagsmith/isomorphic';`

Steps To Reproduce

Follow the instructions at https://docs.flagsmith.com/clients/next-ssr

Expected behavior

declared module flagsmith/isomorphic

timhbt avatar Feb 09 '25 20:02 timhbt

Thanks for raising @timhbt , we'll take a look and get back to you.

matthewelwell avatar Feb 10 '25 09:02 matthewelwell

Resolved in 9.0.4

matthewelwell avatar Feb 13 '25 11:02 matthewelwell