You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used the above configuration but think this should apply for all Gulp and TypeScript flavors.
Using the above configuration all tests pass but running gulp serve gives you an error indicating that the appName.constant.js file is missing. Error can be observed when trying to access the served page outputting the following to the developer console:
UncaughtError: [$injector:modulerr]FailedtoinstantiatemodulekarmaProjectAppdueto:
Error: [$injector:modulerr]FailedtoinstantiatemodulekarmaProjectApp.authdueto:
Error: [$injector:modulerr]FailedtoinstantiatemodulekarmaProjectApp.constantsdueto:
Error: [$injector:nomod]Module'karmaProjectApp.constants'isnotavailable!Youeithermisspelledthemodulenameorforgottoloadit.Ifregisteringamoduleensurethatyouspecifythedependenciesasthesecondargument.http://errors.angularjs.org/1.5.5/$injector/nomod?p0=karmaProjectApp.constants//and much more
Underlying problem is the following:
The task copy:constant copies the constant file. This however relies on that the constant file has been created by the task constant. Where the only task that uses copy:constant is the task transpile:client, which loads task constant in parallel with copy:constant, particularly being written before in the parallel order. A racing condition is thus present where constant needs to finish faster than copy:constant can begin.
Think the constant task was either loaded faster or was somehow run ahead of the transpile:client task in some previous commit. Either way the constant task should be a dependency of task copy:constant.
Creating PR to fix shortly.
The text was updated successfully, but these errors were encountered:
Used the above configuration but think this should apply for all Gulp and TypeScript flavors.
Using the above configuration all tests pass but running gulp serve gives you an error indicating that the
appName.constant.js
file is missing. Error can be observed when trying to access the served page outputting the following to the developer console:Underlying problem is the following:
The task
copy:constant
copies the constant file. This however relies on that the constant file has been created by the taskconstant
. Where the only task that usescopy:constant
is the tasktranspile:client
, which loads taskconstant
in parallel withcopy:constant
, particularly being written before in the parallel order. A racing condition is thus present whereconstant
needs to finish faster thancopy:constant
can begin.Think the
constant
task was either loaded faster or was somehow run ahead of thetranspile:client
task in some previous commit. Either way theconstant
task should be a dependency of taskcopy:constant
.Creating PR to fix shortly.
The text was updated successfully, but these errors were encountered: