This is a typical SSR issue, use following webpack config solves it:

output: {
globalObject: 'this',
},

在 2019年5月2日星期四 UTC+8上午12:36:07,LinOnetwo写道:
>
> if ($tw && $tw.browser) exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor
>
> But when starting tiddlywiki from command line, it still throws 
>
> ReferenceError: window is not defined
>

-- 
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/eefdb42e-37f8-4522-9e77-3d6b30661d75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to