-
Notifications
You must be signed in to change notification settings - Fork 167
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
Warning when using with webpack #45
Comments
Does it work? |
It still seems to work. I haven't verified the code path it takes. I can
look into that. It makes the warning during build. It looked like the
pluggable back end may have been opt in so I was assuming there was a
default.
…On Thu, Jan 25, 2018 at 3:31 AM Luke Childs ***@***.***> wrote:
Does it work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGWbqPo2-fScIvtSdvElZxnsD7crqk4_ks5tOGX_gaJpZM4RsfYu>
.
|
It should work absolutely fine as long as you're not including native Node.js storage adapters. The Webpack warning is exactly that a warning, it's letting you know that one of your dependencies is requiring a dependency via an expression. This is generally bad practice and will probably break static analysis but it's the only way to transparently require storage adapters. It should be totally safe to ignore for now. |
@fantapop @lukechilds What's the recommended quick fix to remove the warnings from my console? I run a tight ship 📦:P |
Close your eyes while the warning's on the screen. |
This has just another bad Webpack UX. I would recommend complaining on their issue tracker: webpack/webpack#196 |
I've been using the close my eyes method...
…On Tue, Mar 6, 2018 at 9:06 PM, Sindre Sorhus ***@***.***> wrote:
This has just another bad Webpack UX. I would recommend complaining on
their issue tracker: webpack/webpack#196
<webpack/webpack#196>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGWbqNEyi_Coy3ZrA8A0D1l17w2Kx80Kks5tb2rQgaJpZM4RsfYu>
.
|
Don't know if this is good or bad, but I added this to my webpack config to get rid of the warning plugins: [
new webpack.ContextReplacementPlugin(/keyv/),
], |
It turns out this isn't a wholly innocuous warning. If you're using Next.js on Vercel, as part of their build optimizations for serverless functions (like dynamic page rendering), they trace module imports to remove as much unused code as possible. It took me awhile to realize that while I'm using If anyone else ends up here tracking this issue down, here was my fix: transitive-bullshit/nextjs-notion-starter-kit@2226296 While I can understand |
https://github.com/microlinkhq/keyv by @Kikobeats appears to fix this issue, but upstream dependents like https://github.com/lukechilds/cacheable-request (which is used by Either way, I think this is worth fixing as it is definitely affecting anyone using |
Although For these situations, you can declare a NPM override at your
|
I use this package transitively via got and see this issue only, since got upgraded indirectly to |
In my case I needed to update my badly-outdated My old auth0 dep was relying on I encountered this bug when porting a NextJS 12 app to NextJS 13, so I suspect others may find their way here. In my case the error had a natural solution, and I was able to update an important security dependency |
the warning is still there, any solutions? |
it's glitchy when I try it. It's only fixed on Staging, but not prod |
With the introduction of Turbopack (tested on Next.js 15), I'm encountering an error that blocks everything, unlike a warning. Issues I Encountered
How I Fixed It
|
I'm importing https://github.com/sindresorhus/got/ into my project and using webpack to build. Webpack doesn't like requiring of expressions:
I'm not sure what the best way to fix this up with would be
The text was updated successfully, but these errors were encountered: