Due to the latest changes in Cheerio - at least the version used in bootstrap-email@1.1.1 - we're having troubles when compiling single/multiple templates.
Environment
Library version: 1.1.1
OS: OSX Big Sur
Node: 12 / 14
Expected behavior
new BootstrapEmail("foobar.html").compile()
// should return a compiled template string
Current behavior
new BootstrapEmail("foobar.html").compile()
// cheerio is not a function
The fix should be quite trivial, i.e. calling .default when requiring cheerio.
Related PRs
This has been addressed twice in the following PRs:
Due to the latest changes in Cheerio - at least the version used in
bootstrap-email@1.1.1
- we're having troubles when compiling single/multiple templates.Environment
Expected behavior
Current behavior
The fix should be quite trivial, i.e. calling
.default
when requiringcheerio
.Related PRs
This has been addressed twice in the following PRs: