Git Product home page Git Product logo

Comments (4)

ericclemmons avatar ericclemmons commented on June 13, 2024

First, what wrapper are you using?

Second, in you project, what happens when you run:

$ node
> require("css-loader")

from install-webpack-plugin.

jameswomack avatar jameswomack commented on June 13, 2024

@ericlemmons The wrapper is called Abacus, it's a tool at Netflix that's not been open-sourced yet. I'm away from my computer, I'll check back in when I run the command as asked.

from install-webpack-plugin.

ericclemmons avatar ericclemmons commented on June 13, 2024

@jameswomack From the way you make it sound, css-loader is managed by Abacus (meaning your configs never have to worry about setting it as a loader), but this project sees a request for css-loader and installs it, as it's unable to find it.

What my worry is is that the dependency is at ./node_modules/@netflix/abacus/node_modules/css-loader or similar, in which case a root-level require("css-loader") will fail because it's not in the root. (This would only be a problem on npm@v2!)

So, in addition to trying require("css-loader") locally, I'd need to know your npm & node version just to be sure.

Thanks!

from install-webpack-plugin.

xaviervia avatar xaviervia commented on June 13, 2024

Hi! Me and @pirelenito are trying to add this to Sagui - you can see it in PR 247 - and we are having the same issue (for every webpack loader). In our case, I can verify that css-loader et al are installed flat in node_modules, yet they are not being picked up.

Doing import 'css-loader' results in this error, which is what I would expect:

ERROR in ./~/postcss/lib/previous-map.js
Module not found: Error: Cannot resolve module 'fs' in /Users/fernando/test-sagui-auto-install/node_modules/postcss/lib
 @ ./~/postcss/lib/previous-map.js 17:10-23

ERROR in ./~/svgo/lib/svgo/config.js
Module not found: Error: Cannot resolve module 'fs' in /Users/fernando/test-sagui-auto-install/node_modules/svgo/lib/svgo
 @ ./~/svgo/lib/svgo/config.js 3:9-22

ERROR in ./~/browserslist/index.js
Module not found: Error: Cannot resolve module 'fs' in /Users/fernando/test-sagui-auto-install/node_modules/browserslist
 @ ./~/browserslist/index.js 3:14-27

from install-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.