<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z000072CN6WCAWOkta Classic EngineIntegrationsAnswered2024-04-16T10:59:50.000Z2021-06-25T19:48:16.000Z2021-06-29T19:27:45.000Z

2rmg9 (2rmg9) asked a question.

Gatsby with okta and xstate/react

Getting this error:

 

" WebpackError: ReferenceError: SDK_VERSION is not defined"

 

I'm using gatsby/react. I get the error when trying to run "gatsby develop"

 

I have an xstate file at `src/machines/authMachine.machine.ts` and am trying to include `@okta/okta-auth-js` and it is throwing that error only when I include it in that file. I believe that is because it's running through `gatsby.ssr` ?

 

Gatsby version: 2.32.3

Okta js version: 5.1.1

Image is not available


This question is closed.
Loading
Gatsby with okta and xstate/react