unplugin-auto-import icon indicating copy to clipboard operation
unplugin-auto-import copied to clipboard

Using auto-imported functions in `.astro` files throws an error

Open jiangmaniu opened this issue 1 year ago • 0 comments

Describe the bug

image

If you uncomment console.log(oldFontSizeMap) according to the comment, the following error will be reported

image

Reproduction

https://stackblitz.com/edit/github-dp5zp2-j1e9uu?file=src/pages/index.astro

System Info

x

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

jiangmaniu avatar Mar 28 '23 14:03 jiangmaniu