Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 parse failed: Unexpected token (3:0)
You may need an appropriate loader to handle this file type.
| /* required styles */
|
> .leaflet-pane,
| .leaflet-tile,
| .leaflet-marker-icon,
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
Sir, i tried to import
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
any solution please tell
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |