Open Fusekki opened 4 years ago
I fixed the issue this way:
Check the extra-webpack.config.js file.
const TESTENV = path.resolve(__dirname, "..", "testenv");
You can console.log(TESTENV); then run ng serve and it'll print the file path in the console.
Make sure the testenv file path is correct and it should start working. Changing the value ".." to "." worked for me.
@staffordp - thanks for the report. Unfortunately, the testenv file isn't yet supported for this sample. See https://github.com/okta/samples-js-angular#running-the-tests - you'll have to export the values as environment variables, or do a work-around like @mrgrape suggests.
Internal ref: OKTA-317699
Hello guys!
Cannot run custom login page example. Got error on Mac:
$ ng serve
Compiling @angular/core : es2015 as esm2015
Error: Error on worker #1: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at read (/Users/kit/Plays/samples-js-angular/custom-login/node_modules/tslib/tslib.js:174:50)
at Object.__spread (/Users/kit/Plays/samples-js-angular/custom-login/node_modules/tslib/tslib.js:193:28)
at Renderer.renderAdjacentStatements (/Users/kit/Plays/samples-js-angular/custom-login/node_modules/@angular/compiler-cli/ngcc/src/rendering/renderer.js:159:63)
at /Users/kit/Plays/samples-js-angular/custom-login/node_modules/@angular/compiler-cli/ngcc/src/rendering/renderer.js:80:52
at Array.forEach (
@a-titorenko this does not seem to be related to the SDK code - does clearing node_modules resolve this? Which Angular version you are using?
I am following the documentation and have created a testenv file in the same directory as the README file. I've tried pasting in our correct values, but I get the error below. Finally, I just copied the code from the README and pasted into:
Yet I get this error after running ng serve:
An unhandled exception occurred: Environment variable ISSUER must be set. See README.md
Not sure what I am doing wrong.