codediodeio / angular-firestarter

🍱 :fire: Angular + Firebase Progressive Web App Starter
https://firestarter.fireship.io/
956 stars 437 forks source link

Issue #3 Seems to be back again in latest build - Cannot read property 'length' of undefined #5

Closed ccocker closed 6 years ago

ccocker commented 6 years ago

TypeError: Cannot read property 'length' of undefined

codediodeio commented 6 years ago

Can you provide more details, stack trace? This code is currently deployed to Firebase hosting...

ccocker commented 6 years ago

Error occurs when i run ng-serve Is this what you are looking for: -

My global versions are:

@angular/cli@1.1.3 firebase-tools@3.9.0 Node 7.7.3 Npm 4.1.2

Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
    at createSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\
typescript\lib\typescript.js:15457:109)
    at parseSourceFileWorker (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_mod
ules\typescript\lib\typescript.js:15389:26)
    at Object.parseSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_mo
dules\typescript\lib\typescript.js:15338:26)
    at Object.createSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_m
odules\typescript\lib\typescript.js:15192:29)
    at VirtualFileStats.getSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase
\node_modules\@ngtools\webpack\src\compiler_host.js:66:35)
    at WebpackCompilerHost.getSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4fireb
ase\node_modules\@ngtools\webpack\src\compiler_host.js:213:38)
    at findSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\ty
pescript\lib\typescript.js:67909:29)
    at processImportedModules (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_mo
dules\typescript\lib\typescript.js:68056:25)
    at findSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\ty
pescript\lib\typescript.js:67937:17)
    at processImportedModules (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_mo
dules\typescript\lib\typescript.js:68056:25)
    at findSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\ty
pescript\lib\typescript.js:67937:17)
    at processSourceFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules
\typescript\lib\typescript.js:67840:27)
    at processRootFile (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\t
ypescript\lib\typescript.js:67728:13)
    at C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\typescript\lib\typ
escript.js:67018:60
    at Object.forEach (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modules\ty
pescript\lib\typescript.js:1449:30)
    at Object.createProgram (C:\Users\craig\Google Drive\Craig\Career\Mojito\Projects\samples\ng4firebase\node_modu
les\typescript\lib\typescript.js:67018:16)
ccocker commented 6 years ago

Apologies i did not read the instructions very carefully. I had not created the environment files.

Thanks for the super fast response

codediodeio commented 6 years ago

No worries. Glad you brought it up because I'm sure this will be a common issue.