problem solved. i have to import external script with
require([script], function(name) { })It seems that importing scripts in a classic way creates conflicts in nodebb
My theme is acting weird for some reason. When i click on menu to go to recent posts for example, it shows only header and sidebar i made and no content. Then I refresh page and it shows. Does anyone have an idea what can that be? @psychobunny @julian @trevor @a_5mith
What does the /api/recent
route show? What version of templates.js are you running? Can you try v0.0.8?
@julian /api/recent
route shows this http://screencast.com/t/juIfZXPC and I am using templates.js 0.0.10 .
I just tried with templates.js 0.0.8 and it still happens the same thing.
Strange, you have a few console errors that I'm noticing, but they don't mean much to me.
When did you notice it wasn't working? If you've changed something recently, maybe try looking there for any errors in your code? Alternatively, run ./nodebb dev
and check the logs.
That error means that you've tried to include a lib that needs require.js, have a look here: https://community.nodebb.org/topic/2235/using-a-script-with-require-js-support/2
@a_5mith @psychobunny Thank you both. So the error is removed and cache is cleared, so now it works like it should. ^^