upstash / qstash-js

Message queue for serverless
https://docs.upstash.com/qstash
MIT License
133 stars 11 forks source link

Error with verifySignature() on NextJS 14 pages router #105

Closed AndreyMay closed 1 week ago

AndreyMay commented 3 weeks ago

On latest version (v2.5.4) started getting the following error when using verifySignature(handler) on pages router:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../node_modules/next/server' imported from .../node_modules/@upstash/qstash/nextjs.mjs
app:dev: [1] Did you mean to import "next/server.js"?

No error on v2.5.0

AndreyMay commented 3 weeks ago

looks like the same issue in the last comments https://github.com/upstash/qstash-js/issues/44

ogzhanolguncu commented 2 weeks ago

Should be fixed here: https://github.com/upstash/qstash-js/releases/tag/v2.5.5.

fahreddinozcan commented 1 week ago

Now that it's fixed, I'm closing this issue.