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
SNOW-889050: NextJS Weird Warning Message #609
Comments
hi and thank you for raising this issue. it looks like similar issues are all over the place, for example
and so on, even outside of as a workaround for now, it should go away if you install |
before trying to solve this issue in the i don't have much experience with Next.JS, so following the docs I started setting up a new Next.js project from scratch, excluded some
which is a different module missing from one of the dependencies of
and in both cases, nobody provides this to them ( Since situation seems to be very similar, but with different modules, I'm wondering how is the missing |
okay I think I found something. apparently just very recently the dev over there moved before we could move on with a similar approach, I really would like to see it working, before we introduce a new dev- dependency into our module which will be probably unused anyways - to get rid of a warning. Do you think it would be possible to provide a minimal viable reproduction Next.Js app, which when run, exhibits the error that only |
@sfc-gh-dszmolka Thanks for the investigation. The good news is that the package does work, I'm able to query the database just fine, just the weird warn message is spit out at the beginning. I took the dumb approach and just installed "proxy-agent" and that seemed to get me a simple warning message. Doing a regular next app seems to break down, and complain about the proxy agent. I can go down the rabbit hole and try to manually install every needed dependency but certainly isn't ideal. Is there a flag to hide the warn message? |
i'm not entirely sure about what options are in next.js to hide the warning messages, but some web search showed these hits:
stats: {
warnings: false
}
webpack: (config) => {
config.resolve.fallback = { "aws-crt": false };
return config;
}, hope some of them helps.
|
Wanted to follow back up. Still exhibiting the warning message, even with adding in Also tried route 2 with attempting to suppress the issue via I did notice that |
I'm really not sure anymore if we should address this Next.JS related issue here. This connector is built for and tested on Node.JS - and there's no such issues on Node.JS
Since this issue does not exist in Node.JS, I'm marking this one as closed but if anyone stumbles upon it and has a solution which can make the harmless warnings disappear in Next.JS, they can share it in a comment. |
Summary
Working with an NX monorepo with NextJS. I'm able to query the database, but grabbing a weird warning message when I launch the application. Figured it might be worth flagging, sorry if there's a duplicate issue. Regardless, I appreciate any response.
Requested info
npm list
)?7.Server version:*
- 7.27.1
What did you do?
snowflake-sdk
What did you expect to see?
Can you set logging to DEBUG and collect the logs?
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: