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.

Unable to include css files from installed packages

See original GitHub issue

I’m trying to combine some scss / css files into one bundle using this package. In my entry.js I import all the stylesheets with:

import "awesomplete/awesomplete.css";
import "./simple-modal-custom.css";
import "./custom.scss";

The first one if from an installed module (ie in node_modules/awesomplete/awesomplete.css. But this files get ignored and only the other 2 get bundled. If I use relative imports this seems to work:

import "../node_modules/awesomplete/awesomplete.css";

I would expect the first version to work. Am I missing something?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
thghcommented, Dec 22, 2019

@aharris Cool, I released version 2.0.0 with that includePath by default.

0reactions
aharriscommented, Sep 9, 2019

You should be able to include node_modules:

    scss({
      includePaths: [
        'node_modules/'
      ]
    }),
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the Error: "The package could not be installed. The ...
A missing style.css file means one of two things: the theme developer (potentially you) failed to include it in the root directory, ...
Read more >
Cant Import CSS files into React Project - Stack Overflow
when i tried to import css file it showed error that loaders are missing. so i have installed css-loader and style-loader packages. if...
Read more >
How to Fix “The package could not be installed. The theme is ...
What is the "The package could not be installed. The theme is missing the style.css stylesheet" error? · Go to Appearance → Themes...
Read more >
Common Error Details - Snowpack
When installing packages from npm, you may encounter some file formats that can run only with additional parsing/processing. First check to see if...
Read more >
Fix the Error: “The package could not be installed ... - YouTube
The theme is missing the style. css stylesheet.” In this tutorial, we'll ... A Comprehensive Guide on WordPress Files and How to Use...
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