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 report] build fail with vite plugin @vitejs/plugin-legacy #1073

Open
qyzzzz opened this issue Sep 5, 2022 · 3 comments
Open

[Bug report] build fail with vite plugin @vitejs/plugin-legacy #1073

qyzzzz opened this issue Sep 5, 2022 · 3 comments
Labels
bug Something isn't working package:bundler-vite

Comments

@qyzzzz
Copy link

qyzzzz commented Sep 5, 2022

Description

vuepress-next not support legacy browser default. so it can be resolve by using @vitejs/plugin-legacy.
However, when I import @vitejs/plugin-legacy for my project, such an error be capture.
image

Reproduction

https://stackblitz.com/edit/vuepress-8ddnwz?file=docs%2F.vuepress%2Fconfig.ts

Used Package Manager

npm

System Info

System:
    OS: macOS 11.2.3
    CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
    Memory: 128.05 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.19.1 - /usr/local/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.14.16 - /usr/local/bin/npm
  Utilities:
    Git: 2.30.1 - /usr/bin/git
  Browsers:
    Chrome: 104.0.5112.101
    Edge: Not Found
    Firefox: 104.0.1
    Safari: 14.0.3
  npmPackages:
    @vuepress/bundler-vite:  2.0.0-beta.48 
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-beta.48 
    @vuepress/client: ^2.0.0-beta.48 => 2.0.0-beta.48 
    @vuepress/core:  2.0.0-beta.48 
    @vuepress/markdown:  2.0.0-beta.48 
    @vuepress/plugin-active-header-links:  2.0.0-beta.48 
    @vuepress/plugin-back-to-top:  2.0.0-beta.48 
    @vuepress/plugin-container:  2.0.0-beta.48 
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-external-link-icon:  2.0.0-beta.48 
    @vuepress/plugin-git:  2.0.0-beta.48 
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-beta.48 
    @vuepress/plugin-nprogress:  2.0.0-beta.48 
    @vuepress/plugin-palette:  2.0.0-beta.48 
    @vuepress/plugin-prismjs:  2.0.0-beta.48 
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: Not Found
    @vuepress/plugin-search: ^2.0.0-beta.48 => 2.0.0-beta.48 
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-beta.48 
    @vuepress/plugin-toc: Not Found
    @vuepress/shared:  2.0.0-beta.48 
    @vuepress/theme-default:  2.0.0-beta.48 
    @vuepress/utils:  2.0.0-beta.48 
    vue: ^3.2.36 => 3.2.37 
    vue-loader: Not Found
    vue-router:  4.0.16 
    vuepress: ^2.0.0-beta.48 => 2.0.0-beta.48 
    vuepress-vite:  undefined (2.0.0-beta.48)
    vuepress-webpack: Not Found
@Mister-Hope Mister-Hope assigned meteorlxy and unassigned meteorlxy Sep 7, 2022
@Mister-Hope
Copy link
Member

You'd better provide a reproduction with latest packages.

@qyzzzz
Copy link
Author

qyzzzz commented Sep 7, 2022

You'd better provide a reproduction with latest packages.

https://stackblitz.com/edit/vuepress-8ddnwz?file=package.json

Done, it is lastest packages now.

@meteorlxy meteorlxy added bug Something isn't working package:bundler-vite labels Sep 7, 2022
@gitsheny
Copy link

gitsheny commented Mar 2, 2023

这个问题有进展了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package:bundler-vite
Projects
None yet
Development

No branches or pull requests

4 participants