Open bostrom opened 1 year ago
Thanks for pointing this out @bostrom. I believe I see the issue. The declaration file for @faire/mjml-react/extensions
can't be found based on what is defined in the package.json for types field. We would just need to update the build to include a package.json to point to the correct declaration file. I believe https://github.com/Faire/mjml-react/issues/72 is caused by the same root problem. Glad you have a work around, but this is definitely on the radar to be fixed.
@bostrom (or anyone reading) we'd be very happy to accept a PR for a fix!
I think the best solution is to fix #71 and #72. Then doing ... from '@faire/mjml-react/extensions'
is directly accessing the index(.js|.d.ts)
inside /extensions
This is fixed by #77 for commonJS. #72 will fix for esm as well, but is still outstanding at this time.
Hello, I get the following error when trying to use components from the extensions subpackage.
results in
Adding the said declaration file resolves the issue, but this should probably be fixed here instead.