ArgueJS
ArgueJS copied to clipboard
Uncaught TypeError: __.type.global is not a function __
I am seeing this error after a webpack build. What could be the cause of it?
It appears to be an issue with a webpack setting which is replacing global with "".
In Chrome dev tools:
> __.type
Object {}
"": ()arguments: nullcaller: nulllength: 0name: ""prototype: specialTypes__proto__: ()<function scope>__proto__: Object
> __.type[""]
(){return Function("return this")()}
Hello. I made a pull request more than two years ago and nothing happened. So, expect this project to be dead.
If I might give you an advice: use TypeScript. I used ArgueJS, when I started programming in JavaScript. I missed type checking (as in e.g. C/C++, C#, Java). But after I created a complete rewrite of ArgueJS, which fixed some bugs and added new features, I found TypeScript. To be hornest: there is no need for a library like ArgueJS anymore.
If you really need some help than I must say sorry. I started a complete rewrite because the code is a little bit "unstructured" and I could not figure out what is going on.
And now an important note: this version of ArgueJS here has a serious bug (see #13, #15). You should not use this version of ArgueJS anymore.
Sorry, I meant "see #13 and #17" (issue #15 is my pull request).