next-learn
next-learn copied to clipboard
Trying out Turbopack with next-learn/dashboard/final-example, something doesn't work.
I tried with npm
and bun
, Turbopack
doesn't work with next-learn/dashboard/final-example.
Server Error
Error: error - node_modules/node-gyp-build/node-gyp-build.js:22:9 Error resolving commonjs request
20 |
21 | function load (dir) {
> 22 | return runtimeRequire(load.resolve(dir))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 | }
24 |
25 | load.resolve = load.path = function (dir) {
unable to resolve dynamic
It was not possible to find the requested file.
Parsed request as written in source code: dynamic
Path where resolving has started: [project]/node_modules/node-gyp-build/node-gyp-build.js
Type of request: commonjs request
Import map: No import map entry
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
processIssues
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js (260:23)
Object.ensurePage
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js (1099:33)
async DevBundlerService.ensurePage
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/lib/dev-bundler-service.js (18:20)
async DevServer.ensurePage
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/dev/next-dev-server.js (519:9)
async Object.ensure
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/dev/next-dev-server.js (164:17)
async DevRouteMatcherManager.matchAll
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/future/route-matcher-managers/dev-route-matcher-manager.js (94:13)
async DevRouteMatcherManager.match
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/future/route-matcher-managers/default-route-matcher-manager.js (155:26)
async NextNodeServer.handleCatchallRenderRequest
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/next-server.js (222:31)
async DevServer.handleRequestImpl
file:///Users/tuanle/next-learn/dashboard/final-example/node_modules/next/dist/server/base-server.js (798:17)
I also tried to bump everything to latest/beta here but it doesn't work for some reasons.