Adding a Dependency on a CSS only npm modules fails
See original GitHub issueI’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
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:19 (5 by maintainers)
Top Results From Across the Web
NPM doesn't install module dependencies - Stack Overflow
What I've tried and Helped: rimraf node_modules npm cache clean --force npm i The most important: Close the VS Code and re-open it....
Read more >How to Solve the Global npm Module Dependency Problem
The first thing you need to do is remove that -g when you install modules. You should replace that with --save-dev so you...
Read more >css-loader - npm
css loader module for webpack. ... Start using css-loader in your project by running `npm i css-loader`. ... Install. npm i css-loader ...
Read more >module-not-found - Next.js
A module not found error can occur for many different reasons: The module you're trying to import is not installed in your dependencies;...
Read more >Manage npm packages - Visual Studio (Windows)
Install packages from Solution Explorer (Node.js) · Dependency type - Chose between Standard, Development, and Optional packages. · Add to package ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should now be fixed.
@zewa666 , thanks for the tip;
"main": false
does seem to work! – Was that documented somewhere that I missed?