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
TypeError: Cannot read property 'compile' of undefined with Hexo 3.2.0 #1793
Comments
Same errors on Ubuntu and Windows. |
I guess it should be solved to update hexo-cli. hexo: 3.2.0 Just guess! I'm not sure.
|
I don't really understand, but it seems |
I upgrade hexo to 3.2.0. Some error occur. And I let hexo-cli upgrade to 1.0.1 to solve problem. This way may be not fit your situation. Just for reference. |
Ok. It's strange. Because there is the article about ignoring files
The folder |
I also got this problem, |
Same here. Latest version of everything. |
same issues here, version 3.2.0 and cli 1.0.1. |
I also encountered this problem after update to the latest today.
I guess low version some of the default plug-in dependencies have been removed. |
Still the same error. Define plugins list in configuration file only disable auto detection of plugins
|
Problem does not exist in hexo 3.1.1. Please fix. |
Same here
While I using other themes this problem happen,except |
I'm getting the same error with Win10. I tried this with an existing hexo blog and a fresh install. hexo: 3.2.0 { |
According to
I run into the same issue when I added
in |
Hello, author of hexo have replied to this issue. See #1807 |
It seems that the only solution is to downgrade hexo to version 3.1.1, but How to downgrade Hexo from version 3.2.0 to 3.1.1 ??? Thanks |
|
So I guess I'm lost. Is there any way to get this to work on 3.2.0 so I don't have to manually downgrade all of my users? No workarounds? |
It output some errors, but
What do you mean? |
I have people pulling in the hexo repo to contribute content. And I've had to change the package.json manually to 3.1.1 to get by the errors. That's all I mean. |
If it doesn't work, yeah downgrade. |
The problem can be solved by downgrading Hexo from version 3.2.0 to 3.1.1 |
when i delete the files under themes/tranquilpeak/source /_* , and it is work ..... |
@fantiq yeah but you are deleting the source of the theme man... :D read this to fix temporarily this bug : LouisBarranqueiro/hexo-theme-tranquilpeak#224 (comment) |
@LouisBarranqueiro do you agree to close this issue and track with #1855? |
yeah, it's perfect. TY |
我使用indigo主题遇到了问题,谁能帮忙解决一下啊,急!(I have encountered problems with the indigo theme. Who can help with this?) (node:284) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
INFO Start processing
INFO Files loaded in 252 ms
ERROR D:\testHexo\themes\indigo\layout\archive.ejs:58
56| <%- /(?|。|!)$/.test(post.title) ? post.title : post.title + '。' %>
57| </a>
>> 58| <a class="catagories" href="/categories/<%- post.categories.data[0].name %>" target="_blank">
59| <%- post.categories.data[0].name %>
60| </a>
61| </div>
Cannot read property 'name' of undefined
TypeError: D:\testHexo\themes\indigo\layout\archive.ejs:58
56| <%- /(?|。|!)$/.test(post.title) ? post.title : post.title + '。' %>
57| </a>
>> 58| <a class="catagories" href="/categories/<%- post.categories.data[0].name %>" target="_blank">
59| <%- post.categories.data[0].name %>
60| </a>
61| </div>
Cannot read property 'name' of undefined
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:88:41)
at Array.forEach (<anonymous>)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:50:15)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at route.set (D:\testHexo\node_modules\hexo\lib\hexo\index.js:386:29)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at D:\testHexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\testHexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:442:10)
at resume_ (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR D:\testHexo\themes\indigo\layout\archive.ejs:58
56| <%- /(?|。|!)$/.test(post.title) ? post.title : post.title + '。' %>
57| </a>
>> 58| <a class="catagories" href="/categories/<%- post.categories.data[0].name %>" target="_blank">
59| <%- post.categories.data[0].name %>
60| </a>
61| </div>
Cannot read property 'name' of undefined
TypeError: D:\testHexo\themes\indigo\layout\archive.ejs:58
56| <%- /(?|。|!)$/.test(post.title) ? post.title : post.title + '。' %>
57| </a>
>> 58| <a class="catagories" href="/categories/<%- post.categories.data[0].name %>" target="_blank">
59| <%- post.categories.data[0].name %>
60| </a>
61| </div>
Cannot read property 'name' of undefined
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:88:41)
at Array.forEach (<anonymous>)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:50:15)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at route.set (D:\testHexo\node_modules\hexo\lib\hexo\index.js:386:29)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at D:\testHexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\testHexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:442:10)
at resume_ (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR D:\testHexo\themes\indigo\layout\archive.ejs:58
56| <%- /(?|。|!)$/.test(post.title) ? post.title : post.title + '。' %>
57| </a>
>> 58| <a class="catagories" href="/categories/<%- post.categories.data[0].name %>" target="_blank">
59| <%- post.categories.data[0].name %>
60| </a>
61| </div>
Cannot read property 'name' of undefined
TypeError: D:\testHexo\themes\indigo\layout\archive.ejs:58
56| <%- /(?|。|!)$/.test(post.title) ? post.title : post.title + '。' %>
57| </a>
>> 58| <a class="catagories" href="/categories/<%- post.categories.data[0].name %>" target="_blank">
59| <%- post.categories.data[0].name %>
60| </a>
61| </div>
Cannot read property 'name' of undefined
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:88:41)
at Array.forEach (<anonymous>)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:50:15)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at route.set (D:\testHexo\node_modules\hexo\lib\hexo\index.js:386:29)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at D:\testHexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\testHexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:442:10)
at resume_ (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
TypeError: D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:64:42)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\testHexo\node_modules\hexo\lib\theme\view.js:120:22)
at Theme._View.View.View.renderSync (D:\testHexo\node_modules\hexo\lib\theme\view.js:48:23)
at Object.partial (D:\testHexo\node_modules\hexo\lib\plugins\helper\partial.js:39:15)
at Object.wrapper [as partial] (D:\testHexo\node_modules\lodash\lodash.js:4949:19)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:11:17)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at _compiled.then.result (D:\testHexo\node_modules\hexo\lib\theme\view.js:40:23)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\testHexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\testHexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\testHexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\testHexo\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\testHexo\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
ERROR D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
TypeError: D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:64:42)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\testHexo\node_modules\hexo\lib\theme\view.js:120:22)
at Theme._View.View.View.renderSync (D:\testHexo\node_modules\hexo\lib\theme\view.js:48:23)
at Object.partial (D:\testHexo\node_modules\hexo\lib\plugins\helper\partial.js:39:15)
at Object.wrapper [as partial] (D:\testHexo\node_modules\lodash\lodash.js:4949:19)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:11:17)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at _compiled.then.result (D:\testHexo\node_modules\hexo\lib\theme\view.js:40:23)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\testHexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\testHexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\testHexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\testHexo\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\testHexo\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
ERROR D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
TypeError: D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:64:42)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\testHexo\node_modules\hexo\lib\theme\view.js:120:22)
at Theme._View.View.View.renderSync (D:\testHexo\node_modules\hexo\lib\theme\view.js:48:23)
at Object.partial (D:\testHexo\node_modules\hexo\lib\plugins\helper\partial.js:39:15)
at Object.wrapper [as partial] (D:\testHexo\node_modules\lodash\lodash.js:4949:19)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:11:17)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at _compiled.then.result (D:\testHexo\node_modules\hexo\lib\theme\view.js:40:23)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\testHexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\testHexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\testHexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\testHexo\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\testHexo\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
ERROR D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
TypeError: D:\testHexo\themes\indigo\layout\layout.ejs:3
1| <!DOCTYPE html>
2| <html>
>> 3| <%- partial('_partial/head') %>
4|
5| <body>
6| <script>
D:\testHexo\themes\indigo\layout\_partial\head.ejs:37
35| }
36| %>
>> 37| <title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle.replace(/<[^>]*>/g, '') %></title>
38| <%
39| var keyWords = config.keywords;
40| if(page.tags){
Cannot read property 'replace' of null
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:64:42)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\testHexo\node_modules\hexo\lib\theme\view.js:120:22)
at Theme._View.View.View.renderSync (D:\testHexo\node_modules\hexo\lib\theme\view.js:48:23)
at Object.partial (D:\testHexo\node_modules\hexo\lib\plugins\helper\partial.js:39:15)
at Object.wrapper [as partial] (D:\testHexo\node_modules\lodash\lodash.js:4949:19)
at eval (eval at compile (D:\testHexo\node_modules\ejs\lib\ejs.js:618:12), <anonymous>:11:17)
at returnedFn (D:\testHexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\testHexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\testHexo\node_modules\hexo\lib\theme\view.js:29:15)
at _compiled.then.result (D:\testHexo\node_modules\hexo\lib\theme\view.js:40:23)
at tryCatcher (D:\testHexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\testHexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\testHexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\testHexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\testHexo\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\testHexo\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\testHexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5) |
Hey,
since I updated to the new Hexo version (3.2.0), when i run
hexo g
, it outputs :It is trying to process scss files while these files are put in
source/_css/
, it should ignored this folder.OS : OSX 10.11.3
Node : 4.0.0
NPM : 2.14.2
The text was updated successfully, but these errors were encountered: