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 'properties' of null #25

Closed
Beluk opened this issue Oct 6, 2020 · 3 comments
Closed

TypeError: Cannot read property 'properties' of null #25

Beluk opened this issue Oct 6, 2020 · 3 comments

Comments

@Beluk
Copy link

Beluk commented Oct 6, 2020

When building with 'npm run build' i got the following error. Any help would be greatly appreciated.

image

@flavius-tirnacop-hs
Copy link

Adding a bit more info to this. It looks that it happens for h2/h3 like ## Jest architectural overview

{
  type: 'element',
  tagName: 'h2',
  properties: {},
  children: [
    {
      type: 'element',
      tagName: 'a',
      properties: [Object],
      children: [],
      position: [Object]
    },
    {
      type: 'text',
      value: 'Jest architectural overview',
      position: [Object]
    },
    {
      type: 'element',
      tagName: 'a',
      properties: [Object],
      children: [Array],
      position: [Object]
    }
  ],
  position: {
    start: { line: 55, column: 1246, offset: 139174 },
    end: { line: 55, column: 1516, offset: 139444 }
  }
}

Reverted to v2.1.0 and everything works.

@Beluk
Copy link
Author

Beluk commented Oct 8, 2020

Thank you, i tested v2.1.0 and it is working fine.

lelouch77 added a commit that referenced this issue Nov 25, 2020
Fix for TypeError: Cannot read property 'properties' of null #25
@lelouch77
Copy link
Collaborator

Issue fixed as part of the PR #28, new version published 2.1.8.
Thanks to @zmogas

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

3 participants