jQuery-ScrollAppear icon indicating copy to clipboard operation
jQuery-ScrollAppear copied to clipboard

Uncaught TypeError: Cannot read property 'ElementAffect' of undefined - Browserify

Open polikin opened this issue 11 years ago • 10 comments

js:

$('.test').ScrollAppear({
        ElementAffect: '.itemtwo',
        AddClass: 'itemthree'
});

html:

<div class="test"></div>
<div class="itemtwo">item two</div>

Error: Uncaught TypeError: Cannot read property 'ElementAffect' of undefined

polikin avatar Sep 28 '15 19:09 polikin

Hi Polikin,

Thanks for the feedback. Can you provide a bit more context (full HTML / JS) and if you're using Browserify shim. I was able to make jQuery ScrollAppear work successfully without errors (I didn't use Browserify shim).

Thanks Dom

domsammut avatar Sep 29 '15 07:09 domsammut

Well.. I found something.. it's seem that ScrollAppear (browserify shim) conflict with FancySelect script.

polikin avatar Sep 29 '15 12:09 polikin

Ah okay. Are you running both through Browserify? Can you send me through an example for reference to see if I resolve the issue from my end (and potentially any other plugins).

Thanks Dom

domsammut avatar Sep 29 '15 12:09 domsammut

can you give me your email.

polikin avatar Sep 29 '15 13:09 polikin

Hi Polikin,

Feel free to just put it in JSFiddle or similar service (like gist). I'd rather not distribute my email address.

Thanks for understanding Dom

domsammut avatar Sep 29 '15 13:09 domsammut

yeah, no problem. You can download my code here: http://ge.tt/6nSwHwO2/v/0

let me know when you got the file.

polikin avatar Sep 29 '15 13:09 polikin

Hi Polikin,

Can you please upload this code somewhere that is readable. I don't download zip files from untrusted sources.

Thanks Dom

domsammut avatar Sep 29 '15 22:09 domsammut

I understand, but you won't be able to see the error if you don't have my structure.

polikin avatar Sep 30 '15 20:09 polikin

I don't need the entire site If you can document the structure of your files and then provide links to the relevant HTML / JS via gist/jsfiddle I should have enough to go from.

domsammut avatar Sep 30 '15 22:09 domsammut

Example of issue not supplied. Closing until proper format is supplied (gist/jsfiddle/inline).

domsammut avatar Oct 13 '15 08:10 domsammut