React-native-render-html: TypeError: undefined is not a constructor (evaluating 'new _htmlparser.DomHandler')

Created on 14 Sep 2020  路  2Comments  路  Source: meliorence/react-native-render-html

After update to 4.2.3 TypeError: undefined is not a constructor (evaluating 'new _htmlparser.DomHandler')

react: 16.9.0
react-native: 0.61.5
Device: iOS simulator iPhone 8 Plus (13.5)

Simple code:

return (
    <HTML
        onLinkPress={_openLink}
        html={htmlContent}
        imagesMaxWidth={imagesMaxWidth}
        tagsStyles={tagsStyles}
                baseFontStyle={{fontSize: 16}}
    />
);

On Android works ...

bug missing template

All 2 comments

@amdrade We've seen multiple users stumbling on this with metro or a package manager (#244), if you have not done this already, I suggest you take the actions proposed here: https://stackoverflow.com/a/63111913/2779871
If that doesn't work, feel free to comment!

@amdrade We've seen multiple users stumbling on this with metro or a package manager (#244), if you have not done this already, I suggest you take the actions proposed here: https://stackoverflow.com/a/63111913/2779871
If that doesn't work, feel free to comment!

Solve!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jamesawer3 picture jamesawer3  路  3Comments

f-roland picture f-roland  路  3Comments

Anitorious picture Anitorious  路  7Comments

Pradeet picture Pradeet  路  7Comments

xipgroc picture xipgroc  路  6Comments