External component (vue-ssr-carousel) doesn't work in Vite (vue2)/rollup production SSR build - render function or template not defined in component: carousel

This issue has been created since 2022-09-02.

Version

2.7.10

Reproduction link

github.com

Steps to reproduce

Clone the reproduction repo and follow the steps from the repo readme to run the SSR build and repro the issue

What is expected?

The component works the same in the dev (vite) build and the production (rollup) build during SSR

What is actually happening?

The dev build SSR works fine, but the production SSR build fails with render function or template not defined in component: carousel


I created an issue in the repo for the external component, but upon further reflection I think this might be a more general vue (or maybe rollup?) issue.
BKWLD/vue-ssr-carousel#89

I tried asking on discord in the #vue-2 channel, but no one replied unfortunately.

SecretPocketCat wrote this answer on 2022-09-10

This work fine with webpack
https://github.com/SecretPocketCat/vue2-ssr-carousel-render-fn-not-defined-repro/tree/webpack-vuecli

So I'm not sure whether this issue stems from the lib, vite, vue2 vite plugin or rollup.

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-10-07
Star Count 199821
Watcher Count 6092
Fork Count 32893
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Move up to intermediate folder structure 4 2022-07-20 2022-08-18
[BUG] Add new `fallback_model` argument to fugue's backend 0 2022-10-06 2022-10-06
[EPIC]: Add Tor support throughout all protocols 1 2020-04-04 2022-08-07
webis-touche2020 qrels 5 2021-06-01 2022-08-22
in_array(): Argument #2 ($haystack) must be of type array, null given 6 2022-01-26 2022-07-03
The cmsCreateMultiprofileTransform may modify the profile in some way 1 2022-06-08 2022-09-14
BWA-MEM2 Index RAM usage 3 2020-11-02 2022-08-20
Мехи дефают ЭМИ 11 2021-08-29 2021-12-25
Радость робустера 8 2021-08-28 2021-12-25
Securely store secrets 0 2022-01-11 2022-09-26
[Keycloak error] Wrong number of segements 4 2021-04-05 2022-09-12
Convert weights from Stylegan2-ada-pytorch 6 2021-03-26 2022-07-17
rev pipe issue: " rev | cat " does NOT work. 2 2022-03-09 2022-09-23
Get Full size of object, in bytes 3 2022-03-07 2022-10-06
Add parameter "UID" to create datasouce with specific uid. 4 2022-02-28 2022-09-02
[BUG] It is wrong to rewrite config `rename-command` and lead kvrocks to fail to restart 11 2021-12-16 2022-08-04
Add sample: worker thread pool for Activities 0 2022-08-07 2022-09-19
跨笔记本反向链接不全 0 2021-12-02 2022-01-18
Installation instructions 4 2020-10-12 2022-07-17
Sprite sheet editor on Cocoa - frames list is not very functional (shown as vsReport instead of vsIcon) 4 2022-09-12 2022-10-04
docs website for the api of the parser 19 2021-10-11 2022-03-01
LLVM ERROR: Unable to allocate memory for common symbols 2 2021-07-31 2022-10-02
Bibliographical-references: bibl vs. biblStruct anchors 1 2021-12-16 2022-09-24
5 cylinder wasted spark output, no cam sensor 0 2021-09-27 2022-01-22
[Feature]: Map creation 1 2022-07-20 2022-08-31
Phone number country code defaults to 🇬🇧 `United Kingdom (+44)` which isn't accurate for every other country 1 2022-07-12 2022-08-19
Code Fences Escaping 0 2022-07-04 2022-09-25
SecHuds won't show some all ID types 2 2022-01-21 2022-09-30
[bug]nut-swiper图片显示不完整 0 2022-06-01 2022-09-10
Provide advanced demo configuration 2 2022-04-30 2022-05-02
does not register for `DCACCOUNT:` uri scheme in system 0 2022-08-19 2022-09-20
Allow setting env vars 4 2021-11-05 2022-09-25
gdb.raw()方法未生效 4 2021-10-12 2022-01-17
TeenManhua not showing all available manhwas 2 2022-04-23 2022-10-06
Carthage issue with latest version: "dyld: Symbol not found" in Reachability framework 3 2020-12-14 2022-09-25
~580 INFO messages from datasource dev service when no Docker available 9 2021-10-19 2022-08-19
[Bug report] Code is not aligned with line numbers 1 2022-08-23 2022-09-29
Dashboard minor bugs 3.0.0.2-dev-m 2 2022-06-15 2022-07-16
Maintenance of pandas type stubs 8 2020-12-09 2022-09-30
compilation failed in macos bigSur 1 2020-12-09 2022-10-03
Fuzzing a target that takes multiple files as inputs 0 2022-05-29 2022-09-28
How to solve this bug 12 2021-09-01 2022-09-17
scanner/http/iis_internal_ip FAILING 5 2021-10-25 2022-10-06
add a benchmark for gdr_pin_buffer 1 2020-03-14 2022-09-25
Make it possible to sideload provider and configuration packages (`*.xpkg`) into Crossplane 4 2022-09-02 2022-09-27
sync up scheduler perf test document 5 2022-05-02 2022-10-03
[Meta][Response Ops] Context on recovered alerts for each rule type 0 2022-03-01 2022-07-19
[Cases] Telemetry: Saved Objects 2 2022-03-01 2022-10-05
Bug: onRender API in React.Profiler is tedious to work with 1 2022-09-28 2022-09-29
Update model message is wrong 3 2022-01-18 2022-09-22