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
I'm getting the same error as in #12 for dynamic pages. (that issue was closed by the poster without solution)
I've created a maximally simple example based off of create-next-app and then adding 2 simple commits -- the first creating a simple dynamic page, and the second using data-prefetch-link.
When I execute npm run build, I get this:
TypeError: ClassconstructorLinkcannotbeinvokedwithout'new'>Builderroroccurred
Error: Exportencounterederrorsonfollowing paths:
/atexportApp(/home/garrett/repro_prefetch_bug/node_modules/next/dist/export/index.js:22:1166)atrunMicrotasks(<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async build (/home/garrett/repro_prefetch_bug/node_modules/next/dist/build/index.js:36:218)
Similarly after the build, running npm run start and visiting http://localhost:3000/, I get:
~/repro_prefetch_bug $ npm run start>repro_prefetch_bug@0.1.0start/home/garrett/repro_prefetch_bug>nextstartready-startedserveronhttp://localhost:3000
TypeError: ClassconstructorLinkcannotbeinvokedwithout'new'atnewDataPrefetchLink(/home/garrett/repro_prefetch_bug/node_modules/data-prefetch-link/dist/link.js:54:79)atd(/home/garrett/repro_prefetch_bug/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:320)at$a(/home/garrett/repro_prefetch_bug/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:39:16)ata.b.render(/home/garrett/repro_prefetch_bug/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:476)ata.b.read(/home/garrett/repro_prefetch_bug/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:18)atrenderToString(/home/garrett/repro_prefetch_bug/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:54:364)atrender(/home/garrett/repro_prefetch_bug/node_modules/next/dist/next-server/server/render.js:3:298)atObject.renderPage(/home/garrett/repro_prefetch_bug/node_modules/next/dist/next-server/server/render.js:46:1020)atFunction.getInitialProps(/home/garrett/repro_prefetch_bug/.next/server/static/I4_UWuzN4JT1KYPsHdXK7/pages/_document.js:265:19)atloadGetInitialProps(/home/garrett/repro_prefetch_bug/node_modules/next/dist/next-server/lib/utils.js:5:101)
The text was updated successfully, but these errors were encountered:
I'm getting the same error as in #12 for dynamic pages. (that issue was closed by the poster without solution)
I've created a maximally simple example based off of
create-next-app
and then adding 2 simple commits -- the first creating a simple dynamic page, and the second usingdata-prefetch-link
.When I execute
npm run build
, I get this:Similarly after the build, running
npm run start
and visitinghttp://localhost:3000/
, I get:The text was updated successfully, but these errors were encountered: