Comments (4)
First, what wrapper are you using?
Second, in you project, what happens when you run:
$ node
> require("css-loader")
from install-webpack-plugin.
@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.
@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.
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)
- Cannot read property 'plugin' of null HOT 18
- webpack-defaults upgrade
- Can't resolve 'stylus-loader' HOT 2
- Standardize README
- typosquatting
- Warning for "spawnSync npm ENOENT"
- Endless loop when installing the module alert
- Forgetting to prefix local path with ./ leads to unexpected installation HOT 2
- Webpack 4 support HOT 8
- What is smarterspam.com HOT 3
- Prompt Before package install --- Feature request HOT 4
- webpack v5 compatibility HOT 2
- ăbă
- in webpack5 is error HOT 2
- This package does not exist in the NPM repository HOT 4
- security problem
- typograpical error
- TypeError: compiler.plugin is not a function
- Don't install peerDependencies which can be resolved by Webpack HOT 2
- Transfer project to https://github.com/webpack-contrib HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install-webpack-plugin.