I get the following error "Module 'ui-router' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument."
What is weird is that I have installed ui-router using npm install and it is in my packages.json file.
I presume the error is because I have misspelled the module name?
Any help is really appreciated,
Thanks.
As the error states you either misspelled the module name or forgot to load it. In this case you misspelled it, it should be ui.router not ui-router.
var app = angular.module('myApp', ['ui.router']);
The only other cause of this error, after spelling it correctly, would be that you forgot to load it. Fix this by including a reference to the library.
Related
Desperate mode: Tried many different configs and all failed. I have a browserified + babelified bundle called videomail-client.js here:
https://github.com/binarykitchen/videomail-client/tree/develop/dist
The package.json's main entry of that package is pointing to this file.
Now, when I require() that package from another project within and browserify it, then I see this error from the gulp task using browserify:
[16:26:32] Error: Cannot find module './keys' from '/home/michael-heuberger/code/videomail.io/node_modules/videomail-client/dist'
at /home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:21
at load (/home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:152:21)
Hmnmm, sounds complicated? Let me rephrase. Package videomail-client is browserified. Another project, videomail.io, is requiring it and browserifying all together over again with other packages. That's there it fails.
On a side note, when I run standalone examples using videomail-client.js, it works fine.
I think the problem is that browserify can't resolve the ./keys file. But it should be included in the browserified videomail-client.js package and resolved from there. How can I tell browserify to resolve it the correct way?
Suggestions welcome how I can investigate and fix this best. Thanks!!
The solution has two steps: use browserify's standalone option and the gulp-derequire package. It works now.
This sounds a lot like a problem I ran into a few years ago (and yes, it is tough to describe :) )
I never got an answer but maybe you'll have better luck. The solution I eventually went with was to not attempt to re-browserify already-browserified libraries; I ended up just concatenating it in and minifying the whole bundle afterwards.
I am compiling ES6 modules into ES3 via clouser compiler but getting error,
What am i doing wrong?
see this issue i've posted on github
https://github.com/google/closure-compiler/issues/2139
fixed is using **/*.js
(which cause all files be included in compiler)
Even though I have copied the whole code from angularfire main repository but the code just doesn't work.
I have gone through the code many times. The error says that angular is not defined even though all my files are connected and angular must be working.
I have this structure
index.html
app.js
This is the error
uncaught reference error: angular is not defined app.js:19
uncaught error: [$injector:modulerr]. angular.js:38
#Moeid the best way to get started with Angular 1.5 and Firebase is following the documentation provided at the Github repository https://github.com/firebase/angularfire/blob/master/docs/quickstart.md
Try again following this step by step and let us know if you find any error.
By Looking at your index file. Load app.js at the end of all third party js. So sequence would be
angular.js
firebase.js
angularfire.min.js
app.js
It will work.
I am using FreshPlanet KeyboardSize ANE in my project. I have successfully added to my project but when I run
MeasureKeyboard.getInstance().setKeyboardAdjustNothing();
I get the following error.
ArgumentError: Error #3500: The extension context does not have a method with the name setKeyboardAdjustNothing.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.freshplanet.ane.KeyboardSize::MeasureKeyboard/setKeyboardAdjustNothing()e
How can I fix this?
Thanks.
Make sure both your Application-app.xml from the src and from your bin-debug folder contain the NAME_OF_THE_EXTENSION_ID tag matching exactly what is being called in your ExtensionContext.createExtensionContext(NAME_OF_THE_EXTENSION_ID,null) inside the source code of the ANE. If they don't match you'll not be able to set the external context in the initialization. That should also match the alias from your RemoteClass descriptor before the class declaration. I hope it's helpful info.
In my case what happened was that MSVCR (Microsoft visual c++ redistribution) was missing which is required to run c++ code.
Because the code in the extension was not able to run, the app could not find any function included in the ANE.
Make sure the code of your ANE is able of running either by writing logs or by running some sample native code independently.
I keep getting the error "The type or namespace name 'xVal' could not be found (are you missing a using directive or an assembly reference?" when I include the namespace:
using xVal.ServerSide;
Am I missing something? Please help. Thanks in advance.
The solution is very simple though. Just have to include a dll on the bin folder of the app.