Have anyone setup Vue with Pants? Getting this er...
# general
s
Have anyone setup Vue with Pants? Getting this error when I attempt to reference .vue files:
Copy code
InvalidFieldException: website/pages/BUILD:1: Invalid field value for 'sources' in target website/pages:pages: The 'sources' field in target website/pages:pages can only contain files that end in '.ts', but it had these files: ['website/pages/index.vue'].
w
I’ve dropped this gist a bunch in chat, but I don’t use Pants builtin NodeJS for frontend (might be a bit better for backend though). I use adhoc tool, because there are always weird oddities in frontend web stuff. https://gist.github.com/sureshjoshi/98fb09f2a340f7c1dad270c4887865a0#file-build-pants-sveltekit
s
thanks! Yea we were actually using that approach, but were hoping to switch to something more official - guess we'll hold off for now
w
There may be a way, I haven’t tried it recently 🤷