flagsmith icon indicating copy to clipboard operation
flagsmith copied to clipboard

flagsmith isomorphic module declaration

Open timhbt opened this issue 1 year ago • 2 comments

How are you running Flagsmith

  • [ ] Self Hosted with Docker
  • [ ] Self Hosted with Kubernetes
  • [x] SaaS at flagsmith.com
  • [ ] Some other way (add details in description below)

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

Screenshots

No response

timhbt avatar Feb 07 '25 12:02 timhbt

same here

eduardopc avatar Feb 07 '25 20:02 eduardopc

This repository is for the main Flagsmith application - please open an issue in https://github.com/Flagsmith/flagsmith-js-client instead. Thanks!

rolodato avatar Feb 09 '25 14:02 rolodato