Forum Discussion
Anonymous
7 years agoNot applicable
error in loading leaflet css under pbi-visuals-tools 3.0.x
I following the tutorial to migrate to the new visual tool, however when I import css from node_modules I receive the following error: error in ./node_modules/leaflet/dist/leaflet.css Module par...
v-viig
7 years agoCommunity Champion
It seems there's no loader for CSS in PBIVIZ 3.0.x but there's a loader for .less files. You can workaround this issue by creating a less file and importing this file into ts file import "./src/styles.less".
Inside .less file you can use import for css: @import (less) "node_modules/leaflet/dist/leaflet.css";
This is a temporary workaround. I'll talk to engineering team to address this issue.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals