-
Notifications
You must be signed in to change notification settings - Fork 277
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 ReferenceError: basket is not defined #174
Comments
karlicoss
added a commit
to karlicoss/basket.js
that referenced
this issue
Nov 5, 2020
If someone else has the same problem, and would like to use the NPM version instead of maintaining their own fork, here's how you can patch it with webpack: karlicoss/promnesia@de5ae3a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to use
basket.js
in one of my client side projects and seeing the following errors in console after bundling the app inwebpack
.Importing the module on top of the app.
Building the above 2 lines test application.
Error message in console
Why?
The problem is that the basket variable(dependency) can't be found by
webpack
, it requests to be defined in advanced of implementation.Solution
Updating line 204 to the following code snippet, so the rest
basket.something
can be successfully invoked.May I submit a PR?
The text was updated successfully, but these errors were encountered: