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

Cannot find name 'frontmatter' from inside the mdx file #445

Closed
4 tasks done
TeamAcarup opened this issue May 31, 2024 · 4 comments
Closed
4 tasks done

Cannot find name 'frontmatter' from inside the mdx file #445

TeamAcarup opened this issue May 31, 2024 · 4 comments
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on

Comments

@TeamAcarup
Copy link

Initial checklist

Affected packages and versions

VSCode 1.89.1 / Mdx Analyser v1.8.7

Link to runnable example

No response

Steps to reproduce

Plugins used: "remark-frontmatter", "remark-gfm"

  1. Create a mdx file with frontmatter like shown below
---
title: "Title example"
description: "Example"
---

# {frontmatter.title}

Expected behavior

The frontmatter object should be recognised.

Actual behavior

The following error appears:

Cannot find name 'frontmatter'. ts-plugin(2304)

Runtime

Node v20

Package manager

npm v9

OS

Windows

Build and bundle tools

Remix

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels May 31, 2024
@remcohaszing
Copy link
Member

Duplicate of #297

@remcohaszing remcohaszing marked this as a duplicate of #297 May 31, 2024
@remcohaszing remcohaszing closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024

This comment has been minimized.

@remcohaszing remcohaszing added 👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on labels May 31, 2024
Copy link
Contributor

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks,
— bb

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label May 31, 2024
@remcohaszing
Copy link
Member

remark-mdx-frontmatter adds this variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants