I'm migrating a Gatsby project to Typescript and trying to use Typewiz for it. I've set it up in webpack config, but I'm getting the following error whenever I try and run a build:
ReferenceError: $_$twiz is not defined
I think because Gatsby SSRs the project, and $_$twiz isn't available in Node? I dunno, just a guess.
Edit: On second thought that can't be the issue, because it breaks in dev too which just runs webpack dev server normally
I'm migrating a Gatsby project to Typescript and trying to use Typewiz for it. I've set it up in webpack config, but I'm getting the following error whenever I try and run a build:
I think because Gatsby SSRs the project, and $_$twiz isn't available in Node? I dunno, just a guess.
Edit: On second thought that can't be the issue, because it breaks in dev too which just runs webpack dev server normally