Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

$_$twiz is not defined when using typewiz-webpack in a Gatsby (React) project #112

Open
madeleineostoja opened this issue Apr 30, 2020 · 0 comments

Comments

@madeleineostoja
Copy link

madeleineostoja commented Apr 30, 2020

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

@madeleineostoja madeleineostoja changed the title $_$twiz is not defined when using typewiz-webpack in a Gatsby (React) project $_$twiz is not defined when using typewiz-webpack in a Gatsby (React SSR) project Apr 30, 2020
@madeleineostoja madeleineostoja changed the title $_$twiz is not defined when using typewiz-webpack in a Gatsby (React SSR) project $_$twiz is not defined when using typewiz-webpack in a Gatsby (React) project Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant