Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am trying to use a CSV writer to write some data into a .CSV file after installing the npm package and using the npm example I get an error:
ERROR in ./node_modules/csv-writer/dist/lib/file-writer.js 40:11-24
Module not found: Error: Can't resolve 'fs' in 'C:\Users\LukasSchlechter\desktop\finaler test\test\node_modules\csv-writer\dist\lib'
I've tried installing 'fs' via npm but this didn't solve my problem...
I had a lot of problems with the node_modules in the Power Bi custom visual package
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @LukasSchlechter,
May I know where did you get this issue? Did you get it in Power BI Desktop or Power BI service? Is your custom visual developed with Python? There are some limitation using Python in Power BI and the packages used are limited in Power BI service.
Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn
Learn which Python packages are supported - Power BI | Microsoft Learn
Best Regards,
Community Support Team _ Caiyun