-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid configuration when adding resolveLoader #958
Comments
Ok @jaredpalmer I seem to have been able to circumvent the
Still, apparently installing
|
@jaredpalmer what's the point or use for including the
which is inside of my
I wanted to try what would happen without it, so I used
so this would have to be an error with
and the output of
Also, is it weird that the
|
This is effectively #896 which I'm struggling with as well. This ought to work in most cases (it works on a bare bones const PnpWebpackPlugin = require("pnp-webpack-plugin");
module.exports = {
modify: (config, { target, dev }, webpack) => {
const appConfig = Object.assign({}, config);
appConfig.resolve.plugins = [PnpWebpackPlugin];
appConfig.resolveLoader.plugins = [
PnpWebpackPlugin.moduleLoader(module),
];
return appConfig;
},
}; You'll need to hoist webpack into your package.json to avoid errors with |
I'm trying to implement yarn's Plug N Play option, and although it has been asking me for several libraries (please see this issue), I managed to get to a point where
react
and other basic packages are not recognized/resolved. I was recommended to use the Plug N Play resolver for Webpack, and so I changed myrazzle.config.js
to this:Still, although the basic packages are recognized now, a package, I get these errors:
So the package
loader-utils
is not recognized. I would guess it may have to do with the fact that I'm not resolving a loader? I didn't include that code because if I change my code as suggested,I get the following error:
I assumed that, given the list of valid options, I could use
loader
in place ofresolveLoader
, so I changed it to this:But that gives me the following error:
So in what way should I implement
resolveLoader
? And why would the modulerazzle-dev-utils/prettyNodeErrors
if I have installedrazzle-dev-utils
? Here's mypackage.json
thus far:Please let me know if I'm doing something wrong, as I am very new to razzle
The text was updated successfully, but these errors were encountered: