You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I get the following error when trying to use components from the extensions subpackage.
import { MjmlHtml } from '@faire/mjml-react/extensions';
results in
Could not find a declaration file for module '@faire/mjml-react/extensions'.
'node_modules/@faire/mjml-react/extensions.js' implicitly has an 'any' type.
If the '@faire/mjml-react' package actually exposes this module,
try adding a new declaration (.d.ts) file containing
`declare module '@faire/mjml-react/extensions';`
Adding the said declaration file resolves the issue, but this should probably be fixed here instead.
The text was updated successfully, but these errors were encountered:
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 #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
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.
The text was updated successfully, but these errors were encountered: