vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.29k stars 926 forks source link

#1103 breaks data uri images #1393

Closed svalaskevicius closed 1 year ago

svalaskevicius commented 1 year ago

Description

inline images break the whole vuepress now - i believe since #1103 as I've verified it started happening from the 62 version:

ENAMETOOLONG: name too long, open '/vuepress/pages/directory/data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0.....

Reproduction

cannot as it is broken

Used Package Manager

yarn

System Info

root@b1f50e3e851f:/vuepress# yarn vuepress info
yarn run v1.22.19
warning package.json: No license field
$ /vuepress/node_modules/.bin/vuepress info

  System:
    OS: Linux 5.15 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (16) x64 Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz
    Memory: 49.41 GB / 62.56 GB
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.17.1 - /tmp/yarn--1691700743680-0.9770007364420021/node
    Yarn: 1.22.19 - /tmp/yarn--1691700743680-0.9770007364420021/yarn
    npm: 9.6.7 - /usr/local/bin/npm
  Utilities:
    Git: 2.30.2 - /usr/bin/git
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @vuepress/bundler-vite:  2.0.0-beta.62
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-beta.62
    @vuepress/client: 2.0.0-beta.62 => 2.0.0-beta.62 (2.0.0-beta.66)
    @vuepress/core: 2.0.0-beta.62 => 2.0.0-beta.62
    @vuepress/markdown:  2.0.0-beta.62
    @vuepress/plugin-active-header-links:  2.0.0-beta.62
    @vuepress/plugin-back-to-top:  2.0.0-beta.62
    @vuepress/plugin-container:  2.0.0-beta.62
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-external-link-icon:  2.0.0-beta.62
    @vuepress/plugin-git:  2.0.0-beta.62
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-beta.62
    @vuepress/plugin-nprogress:  2.0.0-beta.62
    @vuepress/plugin-palette:  2.0.0-beta.62
    @vuepress/plugin-prismjs:  2.0.0-beta.62
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: 2.0.0-beta.62 => 2.0.0-beta.62
    @vuepress/plugin-search: Not Found
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-beta.62
    @vuepress/plugin-toc: Not Found
    @vuepress/shared: 2.0.0-beta.62 => 2.0.0-beta.62 (2.0.0-beta.66)
    @vuepress/theme-default:  2.0.0-beta.62
    @vuepress/utils: 2.0.0-beta.62 => 2.0.0-beta.62 (2.0.0-beta.66)
    vue: ^3.2.45 => 3.2.45 (3.3.4)
    vue-loader: Not Found
    vue-router: ^4.1.6 => 4.1.6 (4.2.4)
    vuepress: 2.0.0-beta.62 => 2.0.0-beta.62
    vuepress-vite:  2.0.0-beta.62
    vuepress-webpack: Not Found

Done in 1.35s.
Mister-Hope commented 1 year ago

Inline images, are you talking about data URI?

That may be something we missed checking out

svalaskevicius commented 1 year ago

ah yes, sorry, I did mean data uri :) as seen in the error message I pasted

pedrogao commented 1 year ago

same to me, what;s the fix version?