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

Uncaught TypeError: Cannot read properties of undefined (reading 'parentElement') #8

Open
charlesmudy opened this issue Apr 1, 2022 · 3 comments

Comments

@charlesmudy
Copy link

Hello,

Nice work with the library, trying to pass a string of HTML file to this email_design_json = Unlayer2be.fromHtml(html); but I am getting the following error:

Uncaught TypeError: Cannot read properties of undefined (reading 'parentElement') at html2Unlayer.js:39:1 at Array.map (<anonymous>) at Html2Unlayer.getColumns (html2Unlayer.js:36:1) at html2Unlayer.js:159:1 at Array.map (<anonymous>) at Html2Unlayer.getDesign (html2Unlayer.js:153:1) at Function.__webpack_modules__../node_modules/unlayer2be/lib/src/utils/unlayer2be.js.Unlayer2be.fromHtml (unlayer2be.js:26:1) at FileReader.fr.onload (dashboard.js:273:1)

What could be the solution?
@barakaally
Copy link
Owner

Hello,

Nice work with the library, trying to pass a string of HTML file to this email_design_json = Unlayer2be.fromHtml(html); but I am getting the following error:

Uncaught TypeError: Cannot read properties of undefined (reading 'parentElement') at html2Unlayer.js:39:1 at Array.map (<anonymous>) at Html2Unlayer.getColumns (html2Unlayer.js:36:1) at html2Unlayer.js:159:1 at Array.map (<anonymous>) at Html2Unlayer.getDesign (html2Unlayer.js:153:1) at Function.__webpack_modules__../node_modules/unlayer2be/lib/src/utils/unlayer2be.js.Unlayer2be.fromHtml (unlayer2be.js:26:1) at FileReader.fr.onload (dashboard.js:273:1)

What could be the solution?

Thanks for your feedback, working on resolving bug!.

@charlesmudy
Copy link
Author

Thank you @barakaally . Waiting for the push, you can do a test run with my HTML template here https://github.com/charlesmudy/responsive-html-email-template

@charlesmudy
Copy link
Author

@barakaally how is it going and any update on this yet?

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