On Wed, Feb 6, 2019 at 8:48 AM Matthew Lauber <[email protected]> wrote:
> Have you given the external library a title? > > Not exactly sure what your use case is, but if you look at my tiddly-calc > <https://github.com/mklauber/tiddly-calc> plugin, you can see that at the > start of math.js > <https://github.com/mklauber/tiddly-calc/blob/master/math.js#L2> I tell > tiddlywiki what the title, type, and module-type of this file is. This > lets tiddlywiki add it to the tiddler store > <https://tiddlywiki.com/dev/#Datamodel>where it can then be referenced by > require. You can look at line 15 of calc.js > <https://github.com/mklauber/tiddly-calc/blob/master/calc.js#L15> to see > how I do that. > > Hi Matt, thanks for the tip. I hadn't added a title and module-type to the library (in fact, I would rather not touch it, if possible), but doing so does not change the outcome. I still get a module not found error. Cheers, Stefano -- __________________________________________________ Stefano Franchi [email protected] <[email protected]> http://stefano.cleinias.org -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/CAJODLwYzMH3j8ZMoeQ8m1fwCP84pXbDU1PvCT0OVpmZ_X3iWWw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
