question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`position` is missing is `mdxJsxAttribute` node

See original GitHub issue

Initial checklist

Affected packages and versions

remark-mdx

Link to runnable example

No response

Steps to reproduce

<div abc="xxx"></div>

Expected behavior

Add position in mdxJsxAttribute node

Actual behavior

{
  "type": "root",
  "children": [
    {
      "type": "mdxJsxFlowElement",
      "name": "div",
      "attributes": [
        {
          "type": "mdxJsxAttribute",
          "name": "abc",
          "value": "xxx"
        }
      ],
      "children": [],
      "position": {
        "start": {
          "line": 1,
          "column": 1,
          "offset": 0
        },
        "end": {
          "line": 1,
          "column": 22,
          "offset": 21
        }
      },
      "data": {
        "_mdxExplicitJsx": true
      }
    }
  ],
  "position": {
    "start": {
      "line": 1,
      "column": 1,
      "offset": 0
    },
    "end": {
      "line": 2,
      "column": 1,
      "offset": 22
    }
  }
}

Runtime

Node v16

Package manager

yarn v1

OS

macOS

Build and bundle tools

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
wooormcommented, May 11, 2022

I don’t believe GH allows moving across organizations unfortunately 😢 Feel free to open a small one there that references this. Or we’ll just keep this one. I’ll assign you here at least!

1reaction
JounQincommented, May 11, 2022

Do you want to explore the solution in a pull request?

Yeah, I’d like to do it when I’m free this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mdast-util-mdx-jsx - unified
mdast extension to parse and serialize MDX or MDX.js JSX.
Read more >
Property is missing in type which is an interface implemented ...
I was working with an older repo on DDD and I came across a Typescript error as I was trying to recreate the...
Read more >
mdast-util-mdx-jsx - npm
MDXJsxAttribute represents a single attribute. The name field must be present. The value field can be present, in which case it is either...
Read more >
React.js: Property is missing in type but required in type
The React.js error "Property is missing in type but required in type" occurs when we don't pass all of the required props to...
Read more >
npm ERR! Missing script : "start" | SOLVED in React - YouTube
npm ERR! Missing script : "start" | but start script is present | SOLVED in Reactstart script missing error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found