ardatan/feTS

[v0.7.0] - Build error in NextJs apps

akifunal opened this issue · 1 comments

Describe the bug

When attempting to build my project that uses fets 0.7.0, an error occurs.
The error seems to originate from the fets/cjs/plugins/typebox.js file. The details of the error are provided below:

../../node_modules/.pnpm/fets@0.7.0/node_modules/fets/cjs/plugins/typebox.js
 Module not found: Default condition should be last one

To Reproduce Steps to reproduce the behavior:

codesandbox

  1. Import fets 0.7.0 in the project
  2. Run the build command or dev command
  3. See error

Expected behavior

The project should build without any errors.

Environment:

  • OS: MacOS Sonoma 14.1.2
  • package-name...: fets@0.7.0
  • NodeJS: 20.10.0

I cannot see any build errors in CodeSandbox here unfortunately. If you still have the issue, could you create minimal and isolated reproduction? Thanks!