Code Monkey home page Code Monkey logo

Comments (9)

TwanoO67 avatar TwanoO67 commented on May 20, 2024

hello

what is you ng --version ?

I got it working well with:

angular-cli: 1.0.0-beta.26
node: 7.2.0
os: linux x64
@angular/core: 2.4.4

from bootstraping-ngx-admin-lte.

AlanAlbuquerque avatar AlanAlbuquerque commented on May 20, 2024

Hi, I had the same issue, I fixed it like this...

1 - change the version of auth0-lock to 10.2.2.

2 - If you have another error with AlertModule (as I have) and DatepickerModule open /src/app/app.module.ts and change the line:

let modules = [
AlertModule,
DatepickerModule,
...

To :

let modules = [
AlertModule.forRoot(),
DatepickerModule.forRoot(),
...

I had a problem with firebase and I had to manually install it.

My computer is in the officer, I put my version informations on monday.

Sorry for bad English. xD

from bootstraping-ngx-admin-lte.

AlanAlbuquerque avatar AlanAlbuquerque commented on May 20, 2024

angular-cli: 1.0.0-beta.26
node: 7.4.0
os: linux x64
@angular/core: 2.4.4
@angular/compiler: 2.4.4
@angular/common: 2.4.4
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/http: 2.4.4

from bootstraping-ngx-admin-lte.

TwanoO67 avatar TwanoO67 commented on May 20, 2024

The firebase problem has been fixed

But the .forRoot fix doesn't thing to be required...

You still have a problem getting that working ? @AlanAlbuquerque

from bootstraping-ngx-admin-lte.

TwanoO67 avatar TwanoO67 commented on May 20, 2024

It seems related to https://auth0.com/forum/t/authlock-is-not-a-constructor/3296/8

Could someone try:
import Auth0Lock from 'auth0-lock'

Instead of the require in auth.service.ts ?

(I still can't reproduce the issue so I can't fix...)

from bootstraping-ngx-admin-lte.

michaelarnauts avatar michaelarnauts commented on May 20, 2024

By importing only Auth0Lock from auth0-lock, Auth0 itself is still not defined, but it's used here https://github.com/TwanoO67/ng2-admin-lte/blob/master/src/app/services/auth.service.ts#L16

There doesn't seem to be a Auth0 object that can be imported.

I've just cloned this repo and executed npm install and npm start. I'm running node 4.2.6.

from bootstraping-ngx-admin-lte.

dantavo avatar dantavo commented on May 20, 2024

@TwanoO67 if I insert import { Auth0Lock } from 'auth0-lock'; in auth service I have this message:
Module '"auth0-lock"' has no exported member 'Auth0Lock' probably I have to install another version of auth0-lock library?

from bootstraping-ngx-admin-lte.

TwanoO67 avatar TwanoO67 commented on May 20, 2024

I fixed the auth0lock library to the good one.
Delete your node_modules and npm install

BTW... as I don't personnaly use auth0 I'm looking someone to upgrade to the latest library (maybe @cindoum ? ), and maintain this part of code.
If there's no-one interrested in a reasonable time I will replace the login page for a more "standard" one, using an home made server example.
(that would be easier for begginers to modify by their own authentification logick)

from bootstraping-ngx-admin-lte.

dantavo avatar dantavo commented on May 20, 2024

perfect now is time to understand how customize it ;)
Thank you

from bootstraping-ngx-admin-lte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.