If styles are used in a Component, rollupConfig under project.json needs to be modified to libs/rollup.config.cjs
rollupConfig
project.json
libs/rollup.config.cjs