Build Error: <js.Build>: error calling Build: no Resource provided in transformation

https://gohugo.io/functions/resources/get/

This function operates on global resources. A global resource is a file within the assets directory, or within any directory mounted to the assets directory.

Your js directory is in the root of your project. Its contents are not global assets.

Also, you are not passing a params map to the js.Build function. See docs:
https://gohugo.io/hugo-pipes/js/#options

2 Likes