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

defineAsyncComponent breaks library umd/iife build #17427

Closed
7 tasks done
Laurensvdmaas opened this issue Jun 9, 2024 · 1 comment
Closed
7 tasks done

defineAsyncComponent breaks library umd/iife build #17427

Laurensvdmaas opened this issue Jun 9, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Laurensvdmaas
Copy link

Describe the bug

Running build with lib mode iife & umd fails with defineAsyncComponent

Reproduction

https://codesandbox.io/p/devbox/lib-build-xcvt29?file=%2Fpackage.json&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clx1zbgyz00073b6kygdnprz2%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clx1zbgyz00023b6ke3gdmziq%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clx1zbgyz00043b6k5r9czfll%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clx1zbgyz00063b6k3cr44zn8%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clx1zbgyz00023b6ke3gdmziq%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clx1zbgyz00013b6kpnhpni1h%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522id%2522%253A%2522clx1zubka00023b6kaiw6ehjp%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fpackage.json%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522clx1zbgyz00023b6ke3gdmziq%2522%252C%2522activeTabId%2522%253A%2522clx1zubka00023b6kaiw6ehjp%2522%257D%252C%2522clx1zbgyz00063b6k3cr44zn8%2522%253A%257B%2522id%2522%253A%2522clx1zbgyz00063b6k3cr44zn8%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A5173%252C%2522id%2522%253A%2522clx1zl19t008c3b6k3d4rmujp%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clx1zl19t008c3b6k3d4rmujp%2522%257D%252C%2522clx1zbgyz00043b6k5r9czfll%2522%253A%257B%2522id%2522%253A%2522clx1zbgyz00043b6k5r9czfll%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clx1ze1w5004t3b6kzhgj2mgb%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522clx1ze1z7005edbhu2ot004k1%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clx1ze1w5004t3b6kzhgj2mgb%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Steps to reproduce

Open the terminal and run npm run build.

If you remove the defineAsyncComponent and import the HelloWorld component normally everything works fine.

System Info

System:
    OS: macOS 14.3.1
    CPU: (8) arm64 Apple M1
    Memory: 88.94 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    npm: 10.8.1 - ~/code/*/node_modules/.bin/npm
    pnpm: 6.32.4 - /opt/homebrew/bin/pnpm
    Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
  Browsers:
    Brave Browser: 124.1.65.123
    Chrome: 119.0.6045.105
    Safari: 17.3.1
  npmPackages:
    vue: ^3.4.21 => 3.4.27

Used Package Manager

npm

Logs

No response

Validations

@sapphi-red
Copy link
Member

Duplicate of #13876

@sapphi-red sapphi-red marked this as a duplicate of #13876 Jun 17, 2024
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants