codetok / cdk-admin

Angular 6 admin panel using angular material & angular flex.
361 stars 256 forks source link

Cannot find module 'firebase/app' #15

Closed hooh88 closed 6 years ago

hooh88 commented 6 years ago

Hi After run ng serve the error below is displayed :

ERROR in node_modules/angularfire2/auth/auth.d.ts(1,27): error TS2307: Cannot find module 'firebase/app'. node_modules/angularfire2/database/database.d.ts(1,26): error TS2307: Cannot find module 'firebase/app'. node_modules/angularfire2/database/interfaces.d.ts(1,27): error TS2307: Cannot find module 'firebase/app'. node_modules/angularfire2/database/list/audit-trail.d.ts(3,26): error TS2307: Cannot find module 'firebase/app'. node_modules/angularfire2/database/list/state-changes.d.ts(3,26): error TS2307: Cannot find module 'firebase/app'. node_modules/angularfire2/firebase.app.module.d.ts(3,27): error TS2307: Cannot find module 'firebase/app'.

harikrishna266 commented 6 years ago

Do you have this issue on the latest pull?

hooh88 commented 6 years ago

Yes

harikrishna266 commented 6 years ago

Sorry about the late response, Is this issue still there?

kamleshkatpara commented 6 years ago

@harikrishna266 Yes, even I faced the same issue after cloning your repo, I tried npm install and then ng server gives that error

harikrishna266 commented 6 years ago

can you try this.

kamleshkatpara commented 6 years ago

@harikrishna266 try what ?

harikrishna266 commented 6 years ago

@kamleshkatpara sorry did not realise that the copy paste did not work try this. https://stackoverflow.com/questions/47920838/typescript-error-cannot-find-module-firebase-app

kamleshkatpara commented 6 years ago

@harikrishna266 Nope, still not working, can you try to clone this repo on your end and check whether it works ?

kamleshkatpara commented 6 years ago
ERROR in ./src/theme/theme.scss (./node_modules/raw-loader!./node_modules/postcs
s-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src
/theme/theme.scss)
Module build failed: Error: ENOENT: no such file or directory, scandir 'D:\cdk-a
dmin\node_modules\node-sass\vendor'
    at Object.readdirSync (fs.js:759:3)
    at Object.getInstalledBinaries (D:\cdk-admin\node_modules\node-sass\lib\exte
nsions.js:129:13)
    at foundBinariesList (D:\cdk-admin\node_modules\node-sass\lib\errors.js:20:1
5)
    at foundBinaries (D:\cdk-admin\node_modules\node-sass\lib\errors.js:15:5)
    at Object.module.exports.missingBinary (D:\cdk-admin\node_modules\node-sass\
lib\errors.js:45:5)
    at module.exports (D:\cdk-admin\node_modules\node-sass\lib\binding.js:15:30)

    at Object.<anonymous> (D:\cdk-admin\node_modules\node-sass\lib\index.js:14:3
5)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (D:\cdk-admin\node_modules\sass-loader\lib\loader.js:3
:14)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
ERROR in ./src/theme/typography.scss (./node_modules/raw-loader!./node_modules/p
ostcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!
./src/theme/typography.scss)
Module build failed: Error: ENOENT: no such file or directory, scandir 'D:\cdk-a
dmin\node_modules\node-sass\vendor'
    at Object.readdirSync (fs.js:759:3)
    at Object.getInstalledBinaries (D:\cdk-admin\node_modules\node-sass\lib\exte
nsions.js:129:13)
    at foundBinariesList (D:\cdk-admin\node_modules\node-sass\lib\errors.js:20:1
5)
    at foundBinaries (D:\cdk-admin\node_modules\node-sass\lib\errors.js:15:5)
    at Object.module.exports.missingBinary (D:\cdk-admin\node_modules\node-sass\
lib\errors.js:45:5)
    at module.exports (D:\cdk-admin\node_modules\node-sass\lib\binding.js:15:30)

    at Object.<anonymous> (D:\cdk-admin\node_modules\node-sass\lib\index.js:14:3
5)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (D:\cdk-admin\node_modules\sass-loader\lib\loader.js:3
:14)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
ERROR in node_modules/angularfire2/firebase.app.module.d.ts(5,22): error TS2420:
 Class 'FirebaseApp' incorrectly implements interface 'App'.
  Property 'functions' is missing in type 'FirebaseApp'.

i ?wdm?: Failed to compile.
yeshwanthmn commented 5 years ago

Can I add bootstrap in this theme

Xonshiz commented 5 years ago

Why was this closed? I've cloned this repo and I'm still facing this issue. Unfortunately, that StackoverFlow link doesn't help either.