question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a Dependency on a CSS only npm modules fails

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
EisenbergEffectcommented, Oct 7, 2016

This should now be fixed.

1reaction
hozncommented, Mar 20, 2018

@zewa666 , thanks for the tip; "main": false does seem to work! – Was that documented somewhere that I missed?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found