• hexo 报错 -- TypeError: Cannot read property 'removeAttr' of undefined


    报错前执行的清除操作

    $ hexo clean
    

    报错内容

    update link as:-->/.com//image-20200302204238083.png
    update link as:-->/.com//%E8%87%AA%E5%8A%A8%E6%B3%A8%E5%86%8C02.png
    update link as:-->/.com//image-20200302204238083.png
    FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
    TypeError: Cannot read property 'removeAttr' of undefined
        at Node.<anonymous> (F:MyBlog-onelpc	hemesButterflyscriptspost-lazyload.js:17:31)
        at initialize.exports.each (F:MyBlog-onelpc
    ode_modulescheeriolibapi	raversing.js:300:24)
        at Hexo.<anonymous> (F:MyBlog-onelpc	hemesButterflyscriptspost-lazyload.js:15:10)
        at Hexo.tryCatcher (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseutil.js:16:23)
        at Hexo.<anonymous> (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleasemethod.js:15:34)
        at F:MyBlog-onelpc
    ode_moduleshexolibextendfilter.js:62:52
        at tryCatcher (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseutil.js:16:23)
        at Object.gotValue (F:MyBlog-onelpc
    ode_modulesluebirdjs
    elease
    educe.js:166:18)
        at Object.gotAccum (F:MyBlog-onelpc
    ode_modulesluebirdjs
    elease
    educe.js:155:25)
        at Object.tryCatcher (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseutil.js:16:23)
        at Promise._settlePromiseFromHandler (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleasepromise.js:547:31)
        at Promise._settlePromise (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleasepromise.js:604:18)
        at Promise._settlePromise0 (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleasepromise.js:649:10)
        at Promise._settlePromises (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleasepromise.js:729:18)
        at _drainQueueStep (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseasync.js:93:12)
        at _drainQueue (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseasync.js:86:9)
        at Async._drainQueues (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseasync.js:102:5)
        at Immediate.Async.drainQueues [as _onImmediate] (F:MyBlog-onelpc
    ode_modulesluebirdjs
    eleaseasync.js:15:14)
        at processImmediate (internal/timers.js:439:21)
    
    

    解决方法

    出现原因:因为之前的md文章中有些图片引用失效。
    解决方法:重新对失效的图片引用了正确的路径。

  • 相关阅读:
    看云学习文档列表
    linux&&ubutun 21.06使用查询资料
    element-admin 查询资料笔记
    tp6 composer install 报Your requirements could not be resolved to an installable set of packages。
    centos 7 install npm
    centos 7 dev
    解決npm run dev 报: 'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序 或批处理文件 错误
    解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题
    Linux创建命令快捷方式
    JS 闭包写法
  • 原文地址:https://www.cnblogs.com/lpcsf/p/12912984.html
Copyright © 2020-2023  润新知