codejnki / angularcliauth0

Demo code of a browser error

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angularcliauth0

This project was generated with Angular CLI version 1.0.4.

This repo is to demonstrate an error with Auth0 built with the Angular CLI.

After adding the auth0-lock package and doing the production build, the development version of React is minified causing this browser error.

browser error

I created a new empty angular app with the CLI. I then added the auth0-lock package.

npm install auth0-lock --save

I imported the auth0-lock in to my app component and configured it with some dummy data (that isn't a real client Id).

Next I built the project using

ng build -prod -env=prod

This minifies and builds the project in to the /dist folder.

If you serve up the files in the dist folder you'll get the above error.

About

Demo code of a browser error


Languages

Language:TypeScript 73.8%Language:JavaScript 21.7%Language:HTML 3.6%Language:CSS 0.9%