Closed camsloanftc closed 1 month ago
In docs or examples we generally recommend importing like this
import { Client } from "@upstash/qstash/dist"
But, we plan to fix this import issue and prevent those mistakes in the near future.
Imports no longer require /dist
you can directly import @upstash/qstash
.
I was trying to do the following:
which led to the following build errors:
Somehow I was able to fix by importing directly from the dist folder:
Anyways, not sure if it's an mjs issue, or something with nextjs, or what, but figured I would add an issue to document, and let people know how I fixed it in case it helps someone else.