I encountered a build failure in my project after upgrading uploadthing to the latest version (6.10.0). The build failed on Vercel (yarn@1.22.19), in my Bitbucket pipeline (yarn@4.1.0), and on my local. After reverting to uploadthing@6.9.0 and @uploadthing/react@6.4.4, the build was successful.
Below is the log from with-tailwindcss example. It has the same error.
β― yarn install
yarn install v1.22.21
info No lockfile found.
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
warning "uploadthing > @effect/schema@0.66.8" has unmet peer dependency "fast-check@^3.13.2".
[4/4] π¨ Building fresh packages...
success Saved lockfile.
β¨ Done in 28.36s.
β― cp .env.example .env
β― yarn build
yarn run v1.22.21
$ next build
β² Next.js 14.2.1
- Environments: .env
Creating an optimized production build ...
Failed to compile.
./node_modules/@effect/schema/dist/esm/FastCheck.js
Module not found: Can't resolve 'fast-check'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/@effect/schema/dist/esm/Arbitrary.js
./node_modules/@effect/schema/dist/esm/Schema.js
./node_modules/@uploadthing/shared/dist/index.js
./node_modules/@uploadthing/react/dist/index.js
./src/utils/uploadthing.ts
./src/app/page.tsx
./node_modules/@effect/schema/dist/esm/FastCheck.js
Module not found: Can't resolve 'fast-check'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/@effect/schema/dist/esm/Arbitrary.js
./node_modules/@effect/schema/dist/esm/Schema.js
./node_modules/uploadthing/server/index.js
./src/app/layout.tsx
> Build failed because of webpack errors
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Provide environment information
Describe the bug
I encountered a build failure in my project after upgrading uploadthing to the latest version (6.10.0). The build failed on Vercel (yarn@1.22.19), in my Bitbucket pipeline (yarn@4.1.0), and on my local. After reverting to uploadthing@6.9.0 and @uploadthing/react@6.4.4, the build was successful.
Below is the log from with-tailwindcss example. It has the same error.
Link to reproduction
https://github.com/pingdotgg/uploadthing/tree/main/examples/with-tailwindcss
To reproduce
Additional information
No response
π¨βπ§βπ¦ Contributing
Code of Conduct