Looks like the latest version of the `main` branch...
# daft-dev
v
Looks like the latest version of the
main
branch will fail when building the daft-dashboard?
Copy code
./src/app/queries/page.tsx
  Error evaluating Node.js code
  ResolveMessage: Cannot find module './node_modules/babel-plugin-react-compiler' from '/home/projects/daft/src/daft-dashboard/frontend/node_modules/next/dist/compiled/babel/bundle.js'

  Make sure that all the Babel plugins and presets you are using
  are defined as dependencies or devDependencies in your package.json
Caused by:                                                                                                                                                                                                                                  [50/1641]
  process didn't exit successfully: `/home/projects/daft/target/debug/build/daft-dashboard-65c660a79cd99970/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-env=DASHBOARD_ASSETS_DIR=/home/projects/daft/target/debug/build/daft-dashboard-18cbc4a68d544994/out
  cargo:rerun-if-changed=frontend/src/
  cargo:rerun-if-changed=frontend/bun.lockb
  cargo:rerun-if-changed=build.rs
  bun install v1.3.1 (89fa0f34)

  Checked 428 installs across 490 packages (no changes) [13.00ms]
     ▲ Next.js 16.0.1 (Turbopack)

     Creating an optimized production build ...
  cargo:warning=Failed to build frontend assets

  --- stderr
  Saved lockfile
  $ next build --no-mangling
   ⚠ Mangling is disabled. Note: This may affect performance and should only be used for debugging purposes.

  > Build error occurred
  Error: Turbopack build failed with 3 errors:
  ./src/app/layout.tsx
  Error evaluating Node.js code
  ResolveMessage: Cannot find module './node_modules/babel-plugin-react-compiler' from '/home/projects/daft/src/daft-dashboard/frontend/node_modules/next/dist/compiled/babel/bundle.js'

  Make sure that all the Babel plugins and presets you are using
  are defined as dependencies or devDependencies in your package.json
  file. It's possible that the missing plugin is loaded by a preset
  you are using that forgot to add the plugin to its dependencies: you
  can workaround this problem by explicitly adding the missing package
  to your top-level package.json.


  Import traces:
    Client Component Browser:
      ./src/app/layout.tsx [Client Component Browser]
      ./src/app/layout.tsx [Server Component]

    Client Component SSR:
      ./src/app/layout.tsx [Client Component SSR]
      ./src/app/layout.tsx [Server Component]


  ./src/app/queries/page.tsx
  Error evaluating Node.js code
  ResolveMessage: Cannot find module './node_modules/babel-plugin-react-compiler' from '/home/projects/daft/src/daft-dashboard/frontend/node_modules/next/dist/compiled/babel/bundle.js'
Looks like the nodejs version is too old on my env(10.x), after upgrade to 24.x, the problem solved
✅ 2
Shall we add this in the daft-dashboard development requirement section?
👍 2
e
Yeah I've run into this issue as well. A note would be nice.
s
I believe we note in the README and the
package.json
that we use Bun, so I'm surprised that Node.js worked. How are you installing dependencies?
v
I didn't manually install dependencies, just run make build and then got the error. Then follow the instruction to perform
bm trust
. After that trigger the build again. I got the error above