okta / samples-js-react

React Auth SDK sample
Other
175 stars 259 forks source link

Windows Issues to start project - 'STANDALONE_SAMPLE_BUILD' is not recognized as an internal or external command, operable program or batch file. #315

Open sgp-tec360 opened 2 weeks ago

sgp-tec360 commented 2 weeks ago

When running on windows (11 with Visual Studio 2022 installed which installed git and node.js installed too), it gets this error from the Okta-hosted-login folder.'STANDALONE_SAMPLE_BUILD' is not recognized as an internal or external command, operable program or batch file. If I do npm start in the previous foler, it starts a page where I am supposed to choose either project and then get an error where the route does not exist because its missing a folder /dist/index.html. Does anyone know how to make it run on windows? I am using the CMD. image image

sgp-tec360 commented 2 weeks ago

I think I found a workaround:

must run the app as npm run dev with the testenv file in place in the okta-hosted-login folder or one level up