akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

Missing "role.provider.ts" and "auth.settings.ts" Files in Front End of "Python Flask Starter Bundle" #63

Open robertpotts opened 4 years ago

robertpotts commented 4 years ago

Hi,

I really like the ngx-admin dashboard UI. I purchased and downloaded your Python Flask Starter Bundle earlier today. I have spent a few hours trying to get it to start. I followed the included directions. The backend starts properly. However the front end returns errors.

(As a side note, I was unable to find frontend/src/environments/environment.ts, but I assumed that frontend/src/environments/environment.prod.ts would be an acceptable substitute.)

After installing all packages, compiling, and running the server, I get the following errors:

ERROR in ./src/app/@auth/auth.module.ts
Module not found: Error: Can't resolve './auth.settings' in '/Projects/flask-starter/frontend/src/app/@auth'

ERROR in ./src/app/@auth/auth.module.ts
Module not found: Error: Can't resolve './role.provider' in '/Projects/flask-starter/frontend/src/app/@auth'

ERROR in src/app/@auth/auth.module.ts:22:30 - error TS2307: Cannot find module './role.provider'.
22 import { RoleProvider } from './role.provider';
                                    ~~~~~~~~~~~~~~~~~
src/app/@auth/auth.module.ts:46:29 - error TS2307: Cannot find module './auth.settings'.
46 import { authOptions } from './auth.settings';

I have spent several hours looking this over. I have read the directions and looked through the code. I've checked online at the ngx-admin-bundle-support repo and related Akveo websites. I have also cleared the cache and re-installed/re-built. However it seems like something is missing? (role.provider.ts and auth.settings.ts).

the-autodev commented 4 years ago

It appears that you are missing some files namely auth.settings.ts and role.provider.ts. Please check whether these files exist at this path /Projects/flask-starter/frontend/src/app/@auth/. If they are missing, check the zip file that you were provided on your purchase and whether they exist in there. If they do, copy them over, compile and run again to test. Untitled1

GanizaniSitara commented 4 years ago

Same issue here. Files are not in the zip.

1) Copied from here: https://github.com/malikme3/cp360/tree/59de6e7f9689816842bef79d7bde4b3811f316f1/node-starter-old/frontend/src/app/%40auth

2) then environment.ts was missing - copied and renamed enviornment.prod.ts

3) Now getting "token is empty or invalid" when trying to register new user