Closed jchck closed 4 years ago
I think this is caused by the confliction with nunjucks syntax. Could you please check if }}
used in any files?
I'm not sure if nunchucks is in use, but there are a bunch of {{ }}
in use.
ie:
(function($, F){
// add in console we use in case it's missing
window.console = window.console || { log:function(){}, error:function(){} };
...
});
Is there anyway to supress the error? It's a plugin installed via Bower and I'm not a maintaner of the project.
Thanks.
For js code, it should be okay. The nunjucks filter applies to the posts.
Is it possible that this is not related to the nunjucks filter?
This isn't a post, it's a js file located in ./source/js
.
There's other js in the same ./source/js
directory which gets's passed along fine via hexo generate
.
The default hello world post is the only post that currently exists.
Let me try to reproduce.
Cool, thanks!
Hexo sometimes renders Javascript files incorrectly. It may be caused by the wrong filter used by Hexo plugins. In fact, Hexo will transform every file in source/ unless excluded with skip_render. There is a discussion about it: #1591 I'm closing this issue. Please join the discussion there :)
Environment Info
Node version(
node -v
): 7.7.4Your site
_config.yml
(Optional):Your theme
_config.yml
(Optional): is emptyHexo and Plugin version(
npm ls --depth 0
):For BUG
A
Template render error: (unknown path) [Line 1421, Column 13]
error is getting thrown when this jQuery plugin is added to./source/js
directory.The error appears to be related to this file as removing the file resolves the issue.
Here's the
hexo generate --debug
log:Thanks for all your hardwork!