You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It use vite + vue + vue-router.
In main.ts when I use @/ alias instead of ./, the build artifact will be broken.
It looks like related to vue-router. If I delete all router usage, errors will be disappear.
The above problems only appear when compiling with rules_js. pnpm build or use vite_binary and chdir to "$$BUILD_WORKSPACE_DIRECTORY/" + package_name() to use local node_modules, and there is no problem.
Version
Development (host) and target OS/architectures:
Output of bazel --version: 7.1.1
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: 1.41.0
Language(s) and/or frameworks involved: js
How to reproduce
https://github.com/hunshcn/vitets_alias_broken
Any other information?
No response
The text was updated successfully, but these errors were encountered:
What happened?
I make a repo to reproduce. https://github.com/hunshcn/vitets_alias_broken
It use vite + vue + vue-router.
In
main.ts
when I use@/
alias instead of./
, the build artifact will be broken.It looks like related to
vue-router
. If I delete all router usage, errors will be disappear.The above problems only appear when compiling with rules_js.
pnpm build
or usevite_binary
and chdir to"$$BUILD_WORKSPACE_DIRECTORY/" + package_name()
to use local node_modules, and there is no problem.Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 7.1.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: 1.41.0Language(s) and/or frameworks involved: js
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: