Closed LuigiMigliardi93 closed 5 years ago
I got same issue
@electerious please help us.
@LuigiMigliardi93 I use file main.js in src it is work!
@GA-MO explain me please.
The code looks fine so it's hard to say what's wrong here. Can you replace basicScroll.min.js with the following file and send me the console output?
please send me this object
{
elem: div.col-md-6.d-none.d-md-block.element,
from: "bottom-bottom",
to: "middle-top",
direct: true,
props: {…}
}
and this object
{
elem: undefined,
from: undefined,
to: undefined,
direct: undefined,
props: undefined
}
I'm using clonedeep from lodash to avoid changes by reference. It looks like it returns the same object but without values. This is interesting…
@electerious why is it without values?
That's the question. Is there a repo I can use to reproduce the issue?
I have the same issue using create-react-app
. While in dev mode the script runs just fine, however when doing a build, the script throws this error.
Got the same issue using bower + this gulp setting:
gulp.task('scripts:bower', () =>
gulp.src(mainBowerFiles({filter: '**/*.js'}))
.pipe($.concat('vendor.js'))
.pipe($.uglify())
.pipe(gulp.dest(destScripts))
.pipe(browsersync.stream())
);
Edit: Managed to fix it by switching to gulp-uglify-es
I've replaced clonedeep with Object.assign
. basicScroll is now almost 50% smaller and v3.0 should hopefully fix this issue. Would be great if someone could give it a try :)
Closing this issue because it should be fixed in v3.0.
Hello, I imported this library via webpack using VueJS when I go into production with SSR I get this error:
The property from exist, why I get this error?
Thanks, Luigi