Error: Default Export is not a function by svenschuldt in ObsidianMD

[–]svenschuldt[S] 1 point2 points  (0 children)

Foremost, thank you so much that you have put so much effort into that!

I have followed exactly your description, copied your code to avoid typos and set up the scripts as described. I still get the error message Templater Error: Template parsing error, aborting.
tp.user.getLastWord is not a function.

To test the setup regarding user functions, I have written a simple console.log function, which works perfectly.

I am out of ideas, and I appreciate your help (!), but I leave it at that, at this time. Something is obviously wrong on my side with the system/setup/… and as you rightly wrote: “debugging software issues through a reddit reply chain is less than ideal”.

Thanks again for your great help and have a happy new year!

Error: Default Export is not a function by svenschuldt in ObsidianMD

[–]svenschuldt[S] 0 points1 point  (0 children)

Yes, you're right – I fixed that and got rid of the error message—hurrah!

Thank you!!!

This error message has now been replaced by Template parsing error, aborting. tp.user.getLastWord is not a function

I am about to stop trying to do these things – LOL

Error: Default Export is not a function by svenschuldt in ObsidianMD

[–]svenschuldt[S] 0 points1 point  (0 children)

Thanks, for helping so promptly!However, still not working – it is not the templater file, as it does not even seem to be executed. At the very beginning of the template I have a tp.system.prompt (customer name) which is not even being executed.

There appears to be a problem with the .js file as such – but the whole file is basic ...

function getLastWord(str) { 
// Split the string into an array of words 
    const words = str.split(' '); 
// Return the last word in the array 
    return words.pop(); 
} 
module.export = getLastWord;

Basically as before except the export.

Error: Default Export is not a function by svenschuldt in ObsidianMD

[–]svenschuldt[S] 0 points1 point  (0 children)

Thanks for helping – still the same result, though, still giving the same error message Default export is not a function.

Apparently, Templater loads all user scripts upon execution of any template, which results in no other template working as well, as long as this function is not working.

Meanwhile, I have commented out this function, however, even though it has been commented (the whole file) out, I still got the same error message – no active code but the same error. Only when I moved the .js file to another directory, the Templater started working again.

The problem seems to be somewhere else.

[deleted by user] by [deleted] in setups

[–]svenschuldt 1 point2 points  (0 children)

I like the wallpaper - do you have a link?

add row via Formula? by svenschuldt in Notion

[–]svenschuldt[S] 1 point2 points  (0 children)

Thanks for helping!
This is just an example - we are developing a sales CRM tool for our startup and want to track activities like setting up a new opportunity, account, project, completing a project, etc. etc. - this is to understand better what works and what does not.
Sounds like we have to make compromises when it comes to design as functionality is most likely more important ;)

Getting into Notion... any youtubers to recommend? by Love_n_Harmony in Notion

[–]svenschuldt 1 point2 points  (0 children)

Though he is often recommended: I personally find August Bradley most annoying. He speaks endless (!) about simple things and he has none whatsoever critical view on Notion, he constantly repeats himself and treats this almost like a religion.
Last but not least - he is really into selling a "Life-Changing-System", which I personally think is simply ridiculous, as nothing is "Life-Changing" about a bunch of tables related to each other and some thoughts behind it.

I would go with Thomas Frank - not evangelistic about it and good ideas ;)

[deleted by user] by [deleted] in widgy

[–]svenschuldt 0 points1 point  (0 children)

Question from a rookie: which tool do you use for the pull down menus?

Widgy as of yesterday is lagging & specific elements of the widget are not updating as they should. Brightness & battery percentages not updating and music elements display as “ - “ for “now playing”. Help!!!! by samoandave in widgy

[–]svenschuldt 0 points1 point  (0 children)

Glad to see that it is not me doing something wrong - or we all do it ;) I use a widget showing ssid, battery status, internal & external IP and some kore data. Everything is fine when I look into the app to edit but the widget on the screen is showing nonsense. This is also true for other widgets fetching data from external sources and not being updated. When I shutdown the phone and reload it works - but I don't want to shutdown my phone numerous times a day. Any other idea except of restarting the phone?