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

[TypeError: Cannot read property 'convert' of null] #305

Closed
Abhiral opened this issue Dec 19, 2023 · 4 comments
Closed

[TypeError: Cannot read property 'convert' of null] #305

Abhiral opened this issue Dec 19, 2023 · 4 comments
Labels

Comments

@Abhiral
Copy link

Abhiral commented Dec 19, 2023

My code:

const createPDF = async () => {
try {
const options = {
html: '

PDF TEST

',
fileName: 'test',
directory: 'Documents',
};

  const file = await RNHTMLtoPDF.convert(options);
  console.log('File Path:', file.filePath);
  alert(file.filePath);
} catch (e) {
  console.log('Error Message:', e);
}

};

@TamDang1646
Copy link

I have the same problem

@Ali-Rzaa
Copy link

Any solution?

@driconmax
Copy link

driconmax commented Feb 7, 2024

If you are using iOS, go to the ios folder and run pod install or bundle exec pod install to install all the dependencies in the iOS project

Copy link

stale bot commented Jan 21, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 21, 2025
@stale stale bot closed this as completed Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants