angular-input-masks icon indicating copy to clipboard operation
angular-input-masks copied to clipboard

module.exports module is not defined angularjs

Open andrepesi opened this issue 8 years ago • 7 comments

Boa noite. Primeiramente, quero parabenizar pelo plugin. é muito dificil achar um que atenda a tantas situações como o seu.

Estou desenvolvendo um projeto com angularjs, e não tenho muita experiencia com o framework.

O seguinte erro está ocorrendo quando incluo o seu modulo no projeto : "module.exports module is not defined angularjs".

Sabe o que pode ser ?

PS: Estou usando o angular 1.4


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

andrepesi avatar Oct 22 '15 23:10 andrepesi

Which file did you included in your project? Did you follow the https://github.com/assisrafael/angular-input-masks#configuration ?

assisrafael avatar Nov 04 '15 09:11 assisrafael

Hi,

I´m having the same issue. I´m not using browserify, bower and npm. I downloaded your code and included like this :

And added the angular mode 'ui.utils.masks'

I got the following error in console : Uncaught ReferenceError: module is not defined

Is there a way to use your library without npm/bower ?

tks

kassimorra avatar Feb 16 '16 12:02 kassimorra

Try to use one of the files of the repository: https://github.com/assisrafael/bower-angular-input-masks

assisrafael avatar Feb 16 '16 16:02 assisrafael

thanks, it works.

Is there a way to improve the installation guide and the github to make it work like bower repository ?

It may prevent future questions.

kassimorra avatar Feb 16 '16 19:02 kassimorra

Sure, make a pull request editing the README.md.

assisrafael avatar Feb 16 '16 19:02 assisrafael

I tried to make a pull request, but I don't know if its right (never done it before).

if its works, I could try to made te improvement that you asked in documentation.

kassimorra avatar Feb 17 '16 00:02 kassimorra

First of all congrats on the work done! Great job.

If you need any help please count on me.

+1 for improve docs when not using bower/npm

But I believe is not only a matter of documentation, maybe the raw js files should have standalone functionality like the bowernpm modules

Bruno

brunobertechini avatar Sep 02 '16 12:09 brunobertechini