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
Hi there, I have a Next.js project with "replicate": "^1.0.1", and this code:
import Replicate from 'replicate'
export const replicate = new Replicate({
auth: process.env.REPLICATE_API_KEY
})
I'm seeing this warning during local development:
- warn ../../node_modules/replicate/lib/util.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Import trace for requested module:
../../node_modules/replicate/lib/util.js
../../node_modules/replicate/index.js
./src/lib/replicate.ts
./src/app/api/cloud/image/route.ts
from const ApiError = require("./error"); in node_modules/replicate/lib/util.js.
Any suggestions on preventing this?
The text was updated successfully, but these errors were encountered:
Hi there, I have a Next.js project with
"replicate": "^1.0.1"
, and this code:I'm seeing this warning during local development:
from
const ApiError = require("./error");
innode_modules/replicate/lib/util.js
.Any suggestions on preventing this?
The text was updated successfully, but these errors were encountered: