-
Notifications
You must be signed in to change notification settings - Fork 51
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
Error on loading plugin in next.js #74
Comments
getting the same |
Applying this patch resolved my issue :) I'm using
diff --git a/lib/plugin.js b/lib/plugin.js
index fb5c8135527f8abf9671ccc8ab6a2e16efe5d5a8..c350b4993b0db61212bf2427ca45e52860898ca7 100644
--- a/lib/plugin.js
+++ b/lib/plugin.js
@@ -14,7 +14,7 @@ class TsconfigPathsPlugin {
const options = Options.getOptions(rawOptions);
this.extensions = options.extensions;
// const colors = new chalk.constructor({ enabled: options.colors });
- this.log = Logger.makeLogger(options, new chalk.Instance({ level: options.colors ? undefined : 0 }));
+ this.log = Logger.makeLogger(options, chalk);
const context = options.context || process.cwd();
const loadFrom = options.configFile || context;
const loadResult = TsconfigPaths.loadConfig(loadFrom); Place the patch file in your Then adding the resolution to you
...,
"resolutions": {
"[email protected]": "patch:tsconfig-paths-webpack-plugin@npm:3.5.2#.yarn/patches/tsconfig-paths-webpack-plugin-npm-3.5.2-7d7e8a5739.patch"
}
} Then run Hope it helps somebody 🙂 |
This usually happens if you set tsconfig "paths": {
"*": ["node_modules/*"]
},
|
I'm trying to use this plugin (
@3.3.0
) in next.js (@10
) and I get the following error:This is my next.config.js:
The text was updated successfully, but these errors were encountered: