Skip to content

Prevent Vue 3 from executing Vue 2 build#121

Open
rpbm1749 wants to merge 1 commit intoalexjoverm:masterfrom
rpbm1749:master
Open

Prevent Vue 3 from executing Vue 2 build#121
rpbm1749 wants to merge 1 commit intoalexjoverm:masterfrom
rpbm1749:master

Conversation

@rpbm1749
Copy link
Copy Markdown

What changed

Adds a defensive guard to the Vue 2 build to prevent it from running in a Vue 3 environment.

Why

When the Vue 2 build is executed under Vue 3, it crashes at runtime due to the unsupported render(h) API, resulting in:
TypeError: e is not a function.

How

The guard detects Vue 3 at import time and throws a clear, actionable error instead of allowing a cryptic runtime failure.
Vue 2 behavior remains unchanged.

Fixes #120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught (in promise) TypeError: e is not a function

1 participant