-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot set property 'Rellax' of undefined #61
Comments
I'm using webpack/babel This is how I got it working after npm install
|
@andythedandyone Really late reply, but do you know how I can automatically load the script with the require? |
@moeamaya, is it possible to rewrite rellax into es6 classes? |
@codercodingthecode Where do you put the require statements? Is that in the webpack? or do you put it along with wherever the script calls the init function in the html? |
Oh I figured it out. At least for webpack 4. I just just added |
Seems like issue #22 not fixed.
I make js bundle using concatination, then filter code by babeljs. Getting following exception:
https://github.com/dixonandmoe/rellax/blob/master/rellax.js#L23
The plugin works fine separately from the bundle, but an additional http request is spent :C
The text was updated successfully, but these errors were encountered: