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

Open
Abhiral opened this issue Dec 19, 2023 · 3 comments
Open

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

Abhiral opened this issue Dec 19, 2023 · 3 comments

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

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

4 participants