Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running with node older than 14 has problem #45

Closed
bingtimren opened this issue Jan 8, 2021 · 1 comment
Closed

Running with node older than 14 has problem #45

bingtimren opened this issue Jan 8, 2021 · 1 comment

Comments

@bingtimren
Copy link
Contributor

Running template-file with older node versions (<=12) has a problem:

$ npx  template-file
Cannot find module 'fs/promises'

This is caused by: https://stackoverflow.com/questions/64725249/fs-promises-api-in-typescript-not-compiling-in-javascript-correctly

I'm submitting a pull request to make it work for the older node versions.

@blakek
Copy link
Contributor

blakek commented Jan 8, 2021

Thanks for the PR! This fix is released in v4.0.2.

@blakek blakek closed this as completed Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants