-
Notifications
You must be signed in to change notification settings - Fork 57
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
Critical Dependency - got / keyv #1298
Comments
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3608 |
Hey @starlight-akouri thanks for reporting this! Unfortunately this is not easy for us to fix right now - unless webpack/kv/cachable-request/got fix it on their end then the only thing we could do is migrate to an alternative nodejs http client. I know the "close your eyes" comment isn't exactly reassuring but this isn't really a security issue or anything, it just means that some tools which trace modules might not be able to find all the dependencies of There are a couple of suggested fixes in the |
For those who wants to ignore the warning, you can refer to https://github.com/sindresorhus/got/issues/2267#issuecomment-1659768856 /** @type {import('next').NextConfig} */
const nextConfig = {
// ...
webpack: (config) => {
// Ignore ALL webpack warnings produced by ./node_modules/keyv/src/index.js file
config.ignoreWarnings = [
{ module: /node_modules\/keyv\/src\/index\.js/ },
];
return config;
},
};
module.exports = nextConfig; |
Updating the suggested solution for this: You should add the next line to your next.config.js file: const nextConfig = {
// ...
experimental: {
serverComponentsExternalPackages: ['ably'],
},
}; You can read more about what is causing this in our README section and in next issue's comment: #1699 (comment). Closing this issue as this warning is not caused by Ably. |
Upon installing Ably with
npm install
I now receive the following errors on my logs:Some initial research led to the solution of "just closing my eyes" but for our project that is an unacceptable fix. How can I address this problem derived from the install of Ably?
I am using Next.js 13
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: