You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started using public-ip package in my Next.js frontend project and saw the following warning appearing. As indicated in the warning, the dependency chain brought me to this package.
⚠ ./node_modules/keyv/src/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/keyv/src/index.js
./node_modules/cacheable-request/dist/index.js
./node_modules/got/dist/source/core/index.js
./node_modules/got/dist/source/index.js
./node_modules/public-ip/index.js
The problem seems to occur because of the following line in keyv / packages / keyv / src / index.ts :
return new (require(adapters[adapter]))(options);
At this moment, I don't have any solution proposals. However, I will try and test possible solutions further and in the meantime this issue might clear some other confused people like me.
The text was updated successfully, but these errors were encountered:
I just realized a former issue that's been replied by the owner (#976) stating that this will be fixed in upcoming v5. Closing this issue because of that.
I suggest anyone ending up here to take a look at this comment.
I started using
public-ip
package in my Next.js frontend project and saw the following warning appearing. As indicated in the warning, the dependency chain brought me to this package.The problem seems to occur because of the following line in
keyv / packages / keyv / src / index.ts
:return new (require(adapters[adapter]))(options);
At this moment, I don't have any solution proposals. However, I will try and test possible solutions further and in the meantime this issue might clear some other confused people like me.
The text was updated successfully, but these errors were encountered: