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

🐛 BUG: markdown imports fail #3443

Closed
1 task done
bholmesdev opened this issue May 25, 2022 · 0 comments · Fixed by #3444
Closed
1 task done

🐛 BUG: markdown imports fail #3443

bholmesdev opened this issue May 25, 2022 · 0 comments · Fixed by #3444
Assignees
Labels
- P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) feat: markdown Related to Markdown (scope)

Comments

@bholmesdev
Copy link
Contributor

bholmesdev commented May 25, 2022

What version of astro are you using?

1.0.0-beta.33

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm, yarn, pnpm (all same result)

What operating system are you using?

Mac

Describe the Bug

When running either an Astro.glob or a static import over any markdown files (location and file contents are irrelevant), I receive a 500 error in the dev server:

`line` must be greater than 0 (lines start at line 1)
Error: `line` must be greater than 0 (lines start at line 1)
    at originalPositionFor$1 (/home/projects/github-dkpdtt/node_modules/vite/dist/node/chunks/dep-59dc6e00.js:1780:19)
    at eval (/home/projects/github-dkpdtt/node_modules/vite/dist/node/chunks/dep-59dc6e00.js:59123:25)
    at String.replace (<anonymous>)
    at eval (/home/projects/github-dkpdtt/node_modules/vite/dist/node/chunks/dep-59dc6e00.js:59113:21)
    at Array.map (<anonymous>)
    at ssrRewriteStacktrace (/home/projects/git&#8230;

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-dkpdtt-45gkqu?file=src%2Fpages%2Findex.astro,src%2Fcomponents%2Ftest.md&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@bholmesdev bholmesdev added - P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) feat: markdown Related to Markdown (scope) s2-medium labels May 25, 2022
@bholmesdev bholmesdev self-assigned this May 25, 2022
@bholmesdev bholmesdev changed the title 🐛 BUG: Astro.glob fails on markdown file globs 🐛 BUG: markdown imports fail May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) feat: markdown Related to Markdown (scope)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant