Giter Site home page Giter Site logo

Comments (3)

aackerman avatar aackerman commented on June 20, 2024

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.

binarykitchen avatar binarykitchen commented on June 20, 2024

sorry, can't help now ... leave this ticket open for later or someone else helps

from circular-dependency-plugin.

alecmev avatar alecmev commented on June 20, 2024

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)

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.