[Bug]: rules_js
does not work as expected with Vite and PrimeVue
#2081
Labels
bug
Something isn't working
rules_js
does not work as expected with Vite and PrimeVue
#2081
What happened?
Sorry for the somewhat vague title, but I'm not exactly sure what's actually wrong.
I'm trying to add PrimeVue to a project using Bazel + Vue, but it isn't working in the way that I expect. Possibly my understanding / expectations are wrong here, but I'm not very experienced with front-end / JavaScript build systems so 🤷.
Expected behaviour: using PrimeVue with Bazel +
rules_js
worksActual behaviour: PrimeVue itself seems to work, but the built-in styling does not
Steps to reproduce: see https://github.com/swarren12/rules_js-primevue-reproduction
More details
As mentioned, I have a project using Bazel,
rules_js
and Vue and, as far as I can tell, it's working correctly; however, when I introduce PrimeVue it doesn't behave as expected.For some reason, I get some of the PrimeVue behaviour, but not all of it - specifically, it seems that some aspect of the theming isn't playing nicely with the
rules_js
build process. Bypassing Bazel completely and running via rawnpm
makes things work as expected, which is why I believe that this is a problem withrules_js
rather than Vite or PrimeVue.Hopefully the reproduction is enough to determine whether this is an actual issue or just user-error 😅
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:bazel 8.0.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
Any other information?
The example reproduction has both a "production" build target as well as a development one; from what I can tell, both are affected (i.e.
run //example:example/dev-mode
andbuild //example
will both exhibit the same problem) but it's easier to reproduce using the development build.The text was updated successfully, but these errors were encountered: