cli: Adding a Dependency on a CSS only npm modules fails
I’m submitting a bug report
- Library Version: 0.17.0
Please tell us about your environment:
- Operating System: Windows 10
- Node Version: 4.2.4
- NPM Version: 3.10.5
- Browser: Chrome
- Language: TypeScript 1.5.3
Current behavior: Adding a dependency on font-awesome (CSS only) from npm fails:
{
"name": "font-awesome",
"path": "../node_modules/font-awesome",
"resources": [
"css/font-awesome.min.css"
]
},
At build time:
… Tracing font-awesome… error D:\dev\aurelia\app\node_modules\font-awesome.js
At runtime:
vendor-bundle.js:3661 Uncaught Error: Mismatched anonymous define() module:
Expected/desired behavior:
Should allow CSS file to be required successfully. Should not throw error above Should generate CSS resource correctly into app-bundle.js
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 19 (5 by maintainers)
This should now be fixed.
@zewa666 , thanks for the tip;
"main": false
does seem to work! – Was that documented somewhere that I missed?Have you tried it with main:false?