-
Notifications
You must be signed in to change notification settings - Fork 68
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
error when using with webpack #22
Comments
|
This seems to be happening because |
@thinker3197 Did you find any solution? I kind of running in the same issue. |
I tried out a few other plugins and this is a common issue when using js/jquery libraries with webpack. This happens, as I stated above because webpack wraps the package in it's own object while bundling thus loosing the access to |
Then.. I guess I will use the CDN version for now. Thanks. |
In my environments, this would work. (webpack 3) in webpack.config.js: module: {
rules: [
...
{
test: /progressively.*\.js$/,
loader: 'imports-loader?this=>window',
},
],
}, in js:
|
Thanks @koishimasato for sharing the solution. I'll try it out later. |
@koishimasato solution doesn't work with webpack 4. Any ideas? |
Yep , this works 👍
|
i got the following error in dev tool and yet it is still working.
What i did:
The text was updated successfully, but these errors were encountered: