GithubHelp home page GithubHelp logo

Comments (2)

nfriedly avatar nfriedly commented on August 27, 2024

I'm getting similar issues, but with a GIANT error message: https://gist.github.com/nfriedly/00293993c5c0844599a4
It looks like something is calling [undefined].log(), a callback is getting called more than once, and there's some (probably unintentional) recursion going on.

from docpad-plugin-minicms.

SteveMcArthur avatar SteveMcArthur commented on August 27, 2024

Docpad version 6.65 seems to have broken MiniCMS. The error seems to come from line 51 of the minicms.plugin.js file where the plugin tries to force docpad to watch.

  MinicmsPlugin.prototype.docpadReady = function(opts) {
    return this.docpad.action('watch', {}, function(err) {
      var _ref;
      if (err) {
        process.stderr.write(("" + ((_ref = err.message) != null ? _ref : err)).trim() + "\n");
      }
      return this.docpad.log("Force watching file for minicms.");
    });
  };

You can see this on line 9 in the error message @nfriedly posted (https://gist.github.com/nfriedly/00293993c5c0844599a4)

Error: The task [action runner ➞ watch] just completed, but it had already completed earlier, this is unexpected

Sounds like docpad is falling over when "watch" is being run twice. I went into the minicms.plugin.js file and commented out the docpadReady function and everything seem to run ok.

from docpad-plugin-minicms.

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.