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

Error: @vitejs/plugin-legacy does not support library mode. #14671

Closed
7 tasks done
rafaytahir23 opened this issue Oct 17, 2023 · 2 comments
Closed
7 tasks done

Error: @vitejs/plugin-legacy does not support library mode. #14671

rafaytahir23 opened this issue Oct 17, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@rafaytahir23
Copy link

rafaytahir23 commented Oct 17, 2023

Describe the bug

I have created the ionic vue project using vite.
Following are my configs:
image (3)
image (4)

When I tried to build (npm run build) the project. I am facing the following error:
image (5)

Reproduction

npm run build

Steps to reproduce

Screenshot from 2023-10-17 09-12-24

System Info

System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 15.44 GB / 31.23 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.1/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm
  Browsers:
    Brave Browser: 117.1.58.137
    Chrome: 117.0.5938.149
  npmPackages:
    @vitejs/plugin-legacy: ^4.0.2 => 4.1.1 
    @vitejs/plugin-vue: ^4.0.0 => 4.2.3 
    vite: ^4.4.11 => 4.4.11

Used Package Manager

npm

Logs

[email protected] build
vite build debug

vite v4.4.11 building for production...
✓ 0 modules transformed.
✓ built in 12ms
Could not resolve entry module "debug/index.html".
error during build:
RollupError: Could not resolve entry module "debug/index.html".
at error (file:///home/contrive/Documents/scansdk/node_modules/rollup/dist/es/shared/node-entry.js:2245:30)
at ModuleLoader.loadEntryModule (file:///home/contrive/Documents/scansdk/node_modules/rollup/dist/es/shared/node-entry.js:24695:20)
at async Promise.all (index 0)

Validations

@sadn1ck
Copy link

sadn1ck commented Oct 17, 2023

Maybe try out some solutions in #1639? Also seems like this is expected without babel to transpile into older ES versions

@sapphi-red
Copy link
Member

plugin-legacy doesn't support lib mode as shown in the error.
Duplicate of #1639

@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Oct 18, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants