Underscore import alias breaks production build with "unref is not a function" #13435
Unanswered
HawkOnPK
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Could you provide the full code for a component that has this problem? Currently I'm not able to reproduce the problem, but without a complete component I'm just guessing about what to include other than the |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i have a project where i often import
{gettext as _}
.This works without issues in a develop mode (run dev).
But in a production run, started by
node /getaiplan/webclientv2/.output/server/index.mjs
the project fails, due to an error "unref(...) is not a function" an a 500 error code. After disabling components one by one, i found out that the alias import breaks the project execution. Importing with any other name (e.g.{gettext}
,{gettext as _get\
) did not cause this issue.I would expect Vue to at least generate a more helpful error when these names are disallowed, or cause errors that have no stacktrace attached to find the problem source.
Vue: 3.5.13
I would have liked to open an issue instead for this, but was not able to produce a blitzstack scenario for this production build issue.
Beta Was this translation helpful? Give feedback.
All reactions