Comments (3)
Can you do some simple debugging for this and console.log
the values passed to path.relative
Adjust the code in your node_modules to look something like this.
if (isCyclic(module) && !plugin.options.exclude.test(module.resource)) {
console.log(process.cwd(), module.resource, module);
var relativePathToModule = path.relative(process.cwd(), module.resource);
console.warn(relativePathToModule, 'contains cyclical dependency');
}
Otherwise I'm not sure why those values would be undefined.
from circular-dependency-plugin.
sorry, can't help now ... leave this ticket open for later or someone else helps
from circular-dependency-plugin.
Same issue for me, getting the following:
/app undefined DependenciesBlock {
dependencies: *snip*,
blocks: [],
variables: [],
context: '/app/node_modules/moment/locale',
reasons: [ ModuleReason { module: [Object], dependency: [Object] } ],
debugId: 2909,
lastId: -1,
id: 978,
index: 978,
index2: 1069,
chunks:
[ Chunk {
id: 0,
ids: [Object],
name: 'main',
modules: [Object],
chunks: [],
parents: [],
blocks: [],
origins: [Object],
files: [Object],
rendered: true,
entry: true,
initial: true,
hash: *snip*,
renderedHash: *snip* } ],
warnings: [],
dependenciesWarnings: [],
errors: [],
dependenciesErrors: [],
resolveDependencies: [Function: bound resolveDependencies],
recursive: true,
regExp: /^\.\/.*$/,
addon: '',
cacheable: true,
contextDependencies: [ '/app/node_modules/moment/locale' ],
built: true,
issuer: '/app/node_modules/moment/moment.js',
optional: true,
useSourceMap: true,
building: undefined,
builtTime: *snip* }
And then it throws Path must be a string. Received undefined
.
from circular-dependency-plugin.
Related Issues (20)
- DeprecationWarning: The `util._extend` API is deprecated HOT 1
- still has warnning when excluded HOT 1
- SASS files fail with error that file is circular dependency of itself HOT 3
- Named exports and imports circulars HOT 1
- webpack@5 support HOT 20
- Performance degradation webpack 5.3.2 + this plugin 5.2.2 on recompile HOT 3
- Improve readme.md
- [email protected] support with circular dependency HOT 3
- Circular dependency checker can be slow HOT 1
- Support for ignoring lazy (not weak) async imports HOT 2
- Webpack 5 HOT 4
- Support for ignore React.lazy async imports
- Log to file? HOT 2
- @types/circular-dependency-plugin is not compatible with Webpack 5 HOT 3
- Cannot read property 'tap' of undefined HOT 1
- TypeError: plugin.options.include.test is not a function HOT 2
- This plugin does not appear to work in webpack=> 4.64.4 typeScript => 4.5.5 react=> 17.0.2 environments HOT 2
- Escaped forward slashes in paths do not work on Windows
- Fast builds during development HOT 2
- [FR] Vite Support HOT 1
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 circular-dependency-plugin.