simpleParallax.js icon indicating copy to clipboard operation
simpleParallax.js copied to clipboard

Error 404. All modules failed to load on vanilla HTML and JS

Open TheConceptBoy opened this issue 2 years ago • 3 comments

Good day. I'm using this extention in a very basic case. just HTML and JS. I get the following errors in console:

simpleParallax.js:5 GET https://depotof.universalideas.ca/scripts/tools/parallax/instances/parallax net::ERR_ABORTED 404 simpleParallax.js:3 GET https://depotof.universalideas.ca/scripts/tools/parallax/helpers/convertToArray net::ERR_ABORTED 404 simpleParallax.js:1 GET https://depotof.universalideas.ca/scripts/tools/parallax/helpers/isSupportedBrowser net::ERR_ABORTED 404 simpleParallax.js:2 GET https://depotof.universalideas.ca/scripts/tools/parallax/helpers/viewport net::ERR_ABORTED 404

I have simply dropped the files for simpleParrallax.js into the web folder. All the instructions point to packet installation for various platforms but mention nothing about good old drag and drop users.

TheConceptBoy avatar Dec 07 '21 18:12 TheConceptBoy

I had to add .js to all the import messages like this: import { viewport } from '../helpers/viewport.js';

but now, albeit it does not complain, I still get the error: index.js:7 Uncaught ReferenceError: simpleParallax is not defined

TheConceptBoy avatar Dec 07 '21 18:12 TheConceptBoy

Gonna have to use the publicly hosted lib for now.

TheConceptBoy avatar Dec 07 '21 18:12 TheConceptBoy

Could you please share a codepen or a repo so I can reproduce and troubleshoot? Thanks.

geosigno avatar Sep 02 '22 09:09 geosigno