Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hexoid/Formidable/Superagent dependencies causing errors with Next 14+ #432

Closed
ztratar opened this issue Oct 25, 2024 · 2 comments · Fixed by #447
Closed

Hexoid/Formidable/Superagent dependencies causing errors with Next 14+ #432

ztratar opened this issue Oct 25, 2024 · 2 comments · Fixed by #447
Assignees
Labels
status: oncall Flagged for awareness from Honeycomb Telemetry Oncall type: bug

Comments

@ztratar
Copy link

ztratar commented Oct 25, 2024

TypeError: hexoid is not a function
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at eval (./services/honey.ts:5:66)
    at (ssr)/./services/honey.ts (/Users/ztratar/playground/embra/packages/app/.next/server/app/chat/page.js:3220:1)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at eval (./services/auth.ts:7:72)
    at (ssr)/./services/auth.ts (/Users/ztratar/playground/embra/packages/app/.next/server/app/chat/page.js:3165:1)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at eval (./lib/app.ts:11:71)
    at (ssr)/./lib/app.ts (/Users/ztratar/playground/embra/packages/app/.next/server/app/chat/page.js:2813:1)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at eval (./lib/useContainerDimensions.ts:5:65)
    at (ssr)/./lib/useContainerDimensions.ts (/Users/ztratar/playground/embra/packages/app/.next/server/app/chat/page.js:2967:1)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at eval (./components/chat/Chat.tsx:15:84)
    at (ssr)/./components/chat/Chat.tsx (/Users/ztratar/playground/embra/packages/app/.next/server/app/chat/page.js:701:1)
    at __webpack_require__ (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
    at eval (./app/chat/page.tsx:10:78)
    at (ssr)/./app/chat/page.tsx (/Users/ztratar/playground/embra/packages/app/.next/server/app/chat/page.js:484:1)
    at Object.__webpack_require__ [as require] (/Users/ztratar/playground/embra/packages/app/.next/server/webpack-runtime.js:33:43)
digest: "3267445951"

Versions

  • Node: 20
  • Libhoney: 4.3.0

Steps to reproduce

  1. Install an app using Next 14 boilerplate.
  2. Try to use the honey library anywhere
  3. On page load, SSR will attempt to attempt to force webpack to compile, which errors.

This is an exports problem. Hexoid knows about it and has patched it in 2.0.0, but formidible still points to 1.0.0

lukeed/hexoid#7

And all these problems for something akin to fetch?

Additional context

@JamieDanielson JamieDanielson added the status: oncall Flagged for awareness from Honeycomb Telemetry Oncall label Oct 29, 2024
@codeboten
Copy link
Contributor

Thanks for reporting @ztratar, will take a look at bumping the superagent dependency

@MikeGoldsmith MikeGoldsmith self-assigned this Nov 5, 2024
@robbkidd robbkidd assigned robbkidd and unassigned MikeGoldsmith Nov 12, 2024
@kentquirk
Copy link
Contributor

Bumping the Formidible dependency will likely work, as they've now updated to the newer hexoid.

@codeboten codeboten assigned codeboten and unassigned robbkidd Dec 17, 2024
codeboten added a commit that referenced this issue Dec 20, 2024
Fixes #432

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: oncall Flagged for awareness from Honeycomb Telemetry Oncall type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants