-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Import jQuery to next.config.js #1465
Comments
@diskokevin Try to do this with a babel plugin. |
Here is my workaround for loading foundation:
Work with next.js 2.0.0 |
Since @diskothibautha's solution is pretty great, I'm gonna close this. |
Thanks @diskothibautha! Amazing ;) |
When trying to use @diskothibautha 's solution, I'm running into this little ordeal. EDIT |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Is there any way to add a new providerPlugin to the next.config.js file and make a plugin accessible from anywhere in my app.
Example: This is my next.config.js
And if I try to console.log(jQuery) from my index.js file:
I still can't access jQuery on the server side, so I get an exception:
ReferenceError: jQuery is not defined
In the end my goal is to import Foundation which has a jQuery dependency and then can't be imported properly in my app.
Thanks for the help!
The text was updated successfully, but these errors were encountered: