You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a project in NextJS with version 15, importing the Component from @heliofi/checkout-react package and running the npm run dev command throws the following error:
TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher') at <unknown> (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:245:19) at hr (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:631:6) at [project]/node_modules/@heliofi/checkout-react/dist/helio-checkout-react.es.js [app-rsc] (ecmascript) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:633:90) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/src/app/page.tsx [app-rsc] (ecmascript) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:12:194) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/src/app/page.tsx [app-rsc] (ecmascript, Next.js server component) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:33:32) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/node_modules/next/dist/esm/build/templates/app-page.js?page=/page { METADATA_0 => "[project]/src/app/favicon.ico.mjs { IMAGE => \"[project]/src/app/favicon.ico [app-rsc] (static)\" } [app-rsc] (structured image object, ecmascript, Next.js server component)", MODULE_1 => "[project]/src/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/src/app/page.tsx [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) <module evaluation> (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:814:158) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/node_modules/next/dist/esm/build/templates/app-page.js?page=/page { METADATA_0 => "[project]/src/app/favicon.ico.mjs { IMAGE => \"[project]/src/app/favicon.ico [app-rsc] (static)\" } [app-rsc] (structured image object, ecmascript, Next.js server component)", MODULE_1 => "[project]/src/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/src/app/page.tsx [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:913:1025) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at instantiateRuntimeModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:652:12) at Object.getOrInstantiateRuntimeModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:668:12) at Object.<anonymous> (file:///home/victor/dev/next/next-checkout-widget/.next/server/app/page.js:11:26) at Module._compile (node:internal/modules/cjs/loader:1546:14) at Module._extensions..js (node:internal/modules/cjs/loader:1691:10) at Module.load (node:internal/modules/cjs/loader:1317:32) at Module._load (node:internal/modules/cjs/loader:1127:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) at Module.require (node:internal/modules/cjs/loader:1339:12) at mod.require (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/require-hook.js:65:28) at require (node:internal/modules/helpers:135:16) at requirePage (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/require.js:103:84) at loadComponentsImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/load-components.js:99:57) at async DevServer.findPageComponentsImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/next-server.js:732:36) at async DevServer.findPageComponents (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/dev/next-dev-server.js:611:20) at async DevServer.renderPageComponent (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:2227:24) at async DevServer.renderToResponseImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:2278:32) at async DevServer.pipeImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:960:25) at async NextNodeServer.handleCatchallRenderRequest (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/next-server.js:281:17) at async DevServer.handleRequestImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:853:17) at async (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/dev/next-dev-server.js:373:20) at async Span.traceAsyncFn (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/trace/trace.js:153:20) at async DevServer.handleRequest (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/dev/next-dev-server.js:370:24) at async invokeRender (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/router-server.js:183:21) at async handleRequest (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/router-server.js:360:24) at async requestHandlerImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/router-server.js:384:13) at async Server.requestListener (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/start-server.js:142:13)
The text was updated successfully, but these errors were encountered:
When creating a project in NextJS with version 15, importing the Component from @heliofi/checkout-react package and running the
npm run dev
command throws the following error:TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher') at <unknown> (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:245:19) at hr (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:631:6) at [project]/node_modules/@heliofi/checkout-react/dist/helio-checkout-react.es.js [app-rsc] (ecmascript) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:633:90) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/src/app/page.tsx [app-rsc] (ecmascript) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:12:194) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/src/app/page.tsx [app-rsc] (ecmascript, Next.js server component) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:33:32) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/node_modules/next/dist/esm/build/templates/app-page.js?page=/page { METADATA_0 => "[project]/src/app/favicon.ico.mjs { IMAGE => \"[project]/src/app/favicon.ico [app-rsc] (static)\" } [app-rsc] (structured image object, ecmascript, Next.js server component)", MODULE_1 => "[project]/src/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/src/app/page.tsx [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) <module evaluation> (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:814:158) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at getOrInstantiateModuleFromParent (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:644:12) at esmImport (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20) at [project]/node_modules/next/dist/esm/build/templates/app-page.js?page=/page { METADATA_0 => "[project]/src/app/favicon.ico.mjs { IMAGE => \"[project]/src/app/favicon.ico [app-rsc] (static)\" } [app-rsc] (structured image object, ecmascript, Next.js server component)", MODULE_1 => "[project]/src/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/src/app/page.tsx [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/_794387._.js:913:1025) at instantiateModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:589:23) at instantiateRuntimeModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:652:12) at Object.getOrInstantiateRuntimeModule (file:///home/victor/dev/next/next-checkout-widget/.next/server/chunks/ssr/[turbopack]_runtime.js:668:12) at Object.<anonymous> (file:///home/victor/dev/next/next-checkout-widget/.next/server/app/page.js:11:26) at Module._compile (node:internal/modules/cjs/loader:1546:14) at Module._extensions..js (node:internal/modules/cjs/loader:1691:10) at Module.load (node:internal/modules/cjs/loader:1317:32) at Module._load (node:internal/modules/cjs/loader:1127:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) at Module.require (node:internal/modules/cjs/loader:1339:12) at mod.require (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/require-hook.js:65:28) at require (node:internal/modules/helpers:135:16) at requirePage (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/require.js:103:84) at loadComponentsImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/load-components.js:99:57) at async DevServer.findPageComponentsImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/next-server.js:732:36) at async DevServer.findPageComponents (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/dev/next-dev-server.js:611:20) at async DevServer.renderPageComponent (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:2227:24) at async DevServer.renderToResponseImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:2278:32) at async DevServer.pipeImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:960:25) at async NextNodeServer.handleCatchallRenderRequest (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/next-server.js:281:17) at async DevServer.handleRequestImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/base-server.js:853:17) at async (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/dev/next-dev-server.js:373:20) at async Span.traceAsyncFn (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/trace/trace.js:153:20) at async DevServer.handleRequest (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/dev/next-dev-server.js:370:24) at async invokeRender (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/router-server.js:183:21) at async handleRequest (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/router-server.js:360:24) at async requestHandlerImpl (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/router-server.js:384:13) at async Server.requestListener (file:///home/victor/dev/next/next-checkout-widget/node_modules/next/dist/server/lib/start-server.js:142:13)
The text was updated successfully, but these errors were encountered: