redwoodjs / redwood

The App Framework for Startups
https://redwoodjs.com
MIT License
17.31k stars 995 forks source link

[Bug?]: client-build-manifest.json needs an import assertion of type "json" when using RSC #10492

Open eristoddle opened 6 months ago

eristoddle commented 6 months ago

What's not working?

Building and then serving was not working when trying React Server Components. I am writing an article on this on a deadline, so I actually got it running by editing files in the node modules.

Here is how I fixed it:

This is the step where I ran into this error:

".../client-build-manifest.json" needs an import assertion of type "json"

It actually had me upgrading yarn, breaking everything for a while, giving up, and finally reading the errors in detail and grepping through the project files. The error came from the vite package at the rscBuildRwEnvVars step of building. It pointed to line 44 in /node_modules/@redwoodjs/vite/dist/buildRouteManifest.js, which looked like this:

const clientBuildManifest = (await import(buildManifestUrl, { with: { type: "json" } })).default;

I just kind of guessed and changed with to assert:

const clientBuildManifest = (await import(buildManifestUrl, { assert: { type: "json" } })).default;

And that fixed the build error. When I tried to serve the app, I ran into the same error there. Since I figured it was the same issue, I grepped for the incorrect import:

grep -rl "with: { type: " ./redwood_rsc_app

And found two in ./redwood_rsc_app/node_modules/@redwoodjs/vite/dist/runFeServer.js and replaced with with assert on line 68 and line 72 of that file.

And the project finally ran. I have never had a guess pan out so well.

How do we reproduce the bug?

npx -y create-redwood-app@canary -y redwood_rsc_app
yarn install
yarn rw experimental setup-streaming-ssr -f
yarn rw experimental setup-rsc
yarn rw build
yarn rw serve

What's your environment? (If it applies)

System:
    OS: macOS 14.4.1
    Shell: 3.6.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 20.3.0 - /private/var/folders/2c/jc8wvk991kl9vlzf5y1ryghc0000gp/T/xfs-2b4c42a7/node
    Yarn: 4.1.1 - /private/var/folders/2c/jc8wvk991kl9vlzf5y1ryghc0000gp/T/xfs-2b4c42a7/yarn
  Databases:
    SQLite: 3.43.2 - /usr/bin/sqlite3
  Browsers:
    Chrome: 124.0.6367.62
    Edge: 124.0.2478.51
    Safari: 17.4.1
  npmPackages:
    @redwoodjs/core: 8.0.0-canary.496 => 8.0.0-canary.496+7370e8fe4
    @redwoodjs/project-config: 8.0.0-canary.496 => 8.0.0-canary.496+7370e8fe4

Are you interested in working on this?

Tobbe commented 6 months ago

@eristoddle Thanks for your bug report.

I'll try to reproduce it on my end, but I'm not feeling too hopeful πŸ˜… I run yarn rw build && yarn rw serve for RSC several times every day and it works just fine. Must be something about our environments that are different. I'm on a slightly newer version of Node (20.11.0) but I doubt that matters much.

Could you check one more thing for me please? What version of TypeScript are you using?

eristoddle commented 6 months ago

This is from the yarn.lock file:

`"typescript@npm:5.4.5": version: 5.4.5 resolution: "typescript@npm:5.4.5" bin: tsc: bin/tsc tsserver: bin/tsserver checksum: 10c0/2954022ada340fd3d6a9e2b8e534f65d57c92d5f3989a263754a78aba549f7e6529acc1921913560a4b816c46dce7df4a4d29f9f11a3dc0d4213bb76d043251e languageName: node linkType: hard

"typescript@patch:typescript@npm%3A5.4.5#optional!builtin<compat/typescript>": version: 5.4.5 resolution: "typescript@patch:typescript@npm%3A5.4.5#optional!builtin<compat/typescript>::version=5.4.5&hash=5adc0c" bin: tsc: bin/tsc tsserver: bin/tsserver checksum: 10c0/db2ad2a16ca829f50427eeb1da155e7a45e598eec7b086d8b4e8ba44e5a235f758e606d681c66992230d3fc3b8995865e5fd0b22a2c95486d0b3200f83072ec9 languageName: node linkType: hard`

Tobbe commented 6 months ago

Double checking the TS docs (release notes) I can confirm that it's at least supposed to be with: in TypeScript https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html

Node also supports with in v20 https://nodejs.org/docs/latest-v20.x/api/esm.html#import-attributes

I just now tried your reproduction steps (again) and can't reproduce.

❯ yarn rw info

  System:
    OS: macOS 14.1.1
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - /private/var/folders/7j/9p56mwmj6jsfdr2h5_884j9w0000gn/T/xfs-1f9adf64/node
    Yarn: 4.1.1 - /private/var/folders/7j/9p56mwmj6jsfdr2h5_884j9w0000gn/T/xfs-1f9adf64/yarn
  Databases:
    SQLite: 3.39.5 - /usr/bin/sqlite3
  Browsers:
    Safari: 17.1
  npmPackages:
    @redwoodjs/core: 8.0.0-canary.504 => 8.0.0-canary.504+1ff7c387d
    @redwoodjs/project-config: 8.0.0-canary.504 => 8.0.0-canary.504+1ff7c387d

And looking at my transpiled files in node_modules I see that I also have with:, but still it work for me image

Can you please show your full error message? See if that gives us any more hints

stmiller-shamrock commented 6 months ago

Here is the complete error from the build step. It also happens with the serve step too, if I change with to assert in ./node_modules/@redwoodjs/vite/dist/buildRouteManifest.js. After reading this, it also makes no sense to me either, so I tried tracking down what could be happening, but no luck.

Generating Prisma Client...
βœ” Verifying graphql schema...
βœ” Building API...
βœ– Command failed with exit code 1: node /Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app
  /node_modules/@redwoodjs/vite/bins/rw-vite-build.mjs
  --webDir="/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web" --verbose=false
  node:internal/errors:496
  ErrorCaptureStackTrace(err);
  ^
  TypeError: Module "file:///Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/dist/clie
  nt/client-build-manifest.json" needs an import assertion of type "json"
  at new NodeError (node:internal/errors:405:5)
  at validateAssertions (node:internal/modules/esm/assert:94:15)
  at defaultLoad (node:internal/modules/esm/load:88:3)
  at DefaultModuleLoader.load (node:internal/modules/esm/loader:281:26)
  at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:192:22)
  at new ModuleJob (node:internal/modules/esm/module_job:63:26)
  at #createModuleJob (node:internal/modules/esm/loader:216:17)
  at DefaultModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:169:34)
  at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:154:17)
  at DefaultModuleLoader.import (node:internal/modules/esm/loader:245:28)
  at importModuleDynamically (node:internal/modules/cjs/loader:1185:37)
  at importModuleDynamicallyWrapper (node:internal/vm/module:428:21)
  at importModuleDynamically (node:internal/vm:105:46)
  at importModuleDynamicallyCallback (node:internal/modules/esm/utils:87:14)
  at buildRouteManifest (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@re
  dwoodjs/vite/dist/buildRouteManifest.js:44:31)
  at buildFeServer (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwood
  js/vite/dist/buildFeServer.js:60:58)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async buildWebSide (file:///Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modu
  les/@redwoodjs/vite/bins/rw-vite-build.mjs:51:5) {
  code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
  }
  Node.js v20.3.0
  1. rscBuildAnalyze
  ==================
  clientEntryFileSet [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverEntryFileSet []
  clientEntryFiles {
  'rsc-AboutCounter.tsx-0': '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/comp
  onents/Counter/AboutCounter.tsx',
  'rsc-Counter.tsx-1': '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/component
  s/Counter/Counter.tsx'
  }
  serverEntryFiles {}
  2. rscBuildClient
  =================
  vite v5.2.8 building for production...
  transforming...
  βœ“ 1431 modules transformed.
  rendering chunks...
  computing gzip size...
  ../dist/client/client-build-manifest.json                      2.29 kB β”‚ gzip:   0.48 kB
  ../dist/client/assets/Counter-C3erIBP5.css                     0.21 kB β”‚ gzip:   0.17 kB
  ../dist/client/assets/rwjs-client-entry-r4ru2H-Y.css           0.61 kB β”‚ gzip:   0.30 kB
  ../dist/client/assets/Counter-DVfxHF4Y.mjs                     0.09 kB β”‚ gzip:   0.09 kB
  ../dist/client/assets/jsx-runtime-C9RP5n2g.mjs                 0.76 kB β”‚ gzip:   0.37 kB
  ../dist/client/assets/rsc-Counter.tsx-1-B9xnkLpn.mjs           0.77 kB β”‚ gzip:   0.40 kB
  ../dist/client/assets/rsc-AboutCounter.tsx-0-XTGa8w3u.mjs      0.93 kB β”‚ gzip:   0.45 kB
  ../dist/client/assets/index-CDFY8Y64.mjs                      11.82 kB β”‚ gzip:   3.62 kB
  ../dist/client/rsdw-client.mjs                                22.41 kB β”‚ gzip:   6.35 kB
  ../dist/client/rd-server.mjs                                 235.36 kB β”‚ gzip:  56.79 kB
  ../dist/client/assets/index-D8GnguU9.mjs                     260.17 kB β”‚ gzip:  62.58 kB
  ../dist/client/assets/rwjs-client-entry-Dhmu8_Pe.mjs       1,082.77 kB β”‚ gzip: 219.86 kB
  βœ“ built in 1.97s
  3. rscBuildForServer
  ====================
  vite v5.2.8 building SSR bundle for production...
  transformClientModule names [ 'AboutCounter' ]
  transformClientModule names [ 'Counter' ]
  transforming...
  css-preinit: pages/AboutPage/AboutPage.tsx x1 (assets/Counter-C3erIBP5.css)
  css-preinit: pages/HomePage/HomePage.tsx x1 (assets/Counter-C3erIBP5.css)
  βœ“ 186 modules transformed.
  chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/vite/dist/entr
  ies.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/entries.ts'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webp
  ack/server.edge.js?commonjs-module',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webp
  ack/cjs/react-server-dom-webpack-server.edge.production.min.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/
  cjs/react-server-dom-webpack-server.edge.production.min.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webp
  ack/cjs/react-server-dom-webpack-server.edge.development.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/
  cjs/react-server-dom-webpack-server.edge.development.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/
  server.edge.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/
  server.edge.js?commonjs-entry'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/entry.server.tsx'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/web/dist/c
  omponents/htmlTags.js?commonjs-exports',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/objec
  t/define-property.js?commonjs-module',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/gl
  obal.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fa
  ils.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fu
  nction-bind-native.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fu
  nction-apply.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fu
  nction-uncurry-this.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/cl
  assof-raw.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fu
  nction-uncurry-this-clause.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -callable.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internal
  s/object-get-own-property-descriptor.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/de
  scriptors.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fu
  nction-call.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internal
  s/object-property-is-enumerable.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ob
  ject-property-is-enumerable.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/cr
  eate-property-descriptor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/in
  dexed-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -null-or-undefined.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/re
  quire-object-coercible.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -indexed-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/pa
  th.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ge
  t-built-in.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ob
  ject-is-prototype-of.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/en
  gine-user-agent.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/en
  gine-v8-version.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/sy
  mbol-constructor-detection.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/us
  e-symbol-as-uid.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -symbol.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/tr
  y-to-string.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/a-
  callable.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ge
  t-method.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/or
  dinary-to-primitive.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internal
  s/shared-store.js?commonjs-module',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/de
  fine-global-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/sh
  ared-store.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/sh
  ared.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ha
  s-own-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ui
  d.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/we
  ll-known-symbol.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -primitive.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -property-key.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/do
  cument-create-element.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ie
  8-dom-define.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ob
  ject-get-own-property-descriptor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -forced.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fu
  nction-bind-context.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internal
  s/object-define-property.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/v8
  -prototype-define-bug.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/an
  -object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ob
  ject-define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/cr
  eate-non-enumerable-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ex
  port.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.o
  bject.define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/object/de
  fine-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/stable/objec
  t/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/actual/objec
  t/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/full/object/
  define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/features/obj
  ect/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/co
  re-js/object/define-property.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs
  3/helpers/interopRequireDefault.js?commonjs-module',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/he
  lpers/interopRequireDefault.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/
  es.string.starts-with.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ma
  th-trunc.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -integer-or-infinity.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -length.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -string-tag-support.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/cl
  assof.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to
  -string.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -regexp.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/no
  t-a-regexp.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/co
  rrect-is-regexp-logic.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.s
  tring.starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ge
  t-built-in-prototype-method.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/string/vi
  rtual/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/instance/
  starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/stable/insta
  nce/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/actual/insta
  nce/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/full/instanc
  e/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/features/ins
  tance/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/co
  re-js/instance/starts-with.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/
  es.array.map.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/le
  ngth-of-array-like.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -array.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/in
  spect-source.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is
  -constructor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ar
  ray-species-constructor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ar
  ray-species-create.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ar
  ray-iteration.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ar
  ray-method-has-species-support.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.a
  rray.map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/array/vir
  tual/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/instance/
  map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/stable/insta
  nce/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/actual/insta
  nce/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/full/instanc
  e/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/features/ins
  tance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/co
  re-js/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/web/dist/compo
  nents/htmlTags.js',
  ... 1 more item
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [ '\x00commonjsHelpers.js' ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/AboutPage/AboutPage.css'
  ,
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/AboutPage/AboutPage.tsx'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  adding "use client" to assets/rsc-AboutCounter.tsx-0.mjs
  serverValues []
  chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/HomePage/HomePage.module
  .css',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/HomePage/HomePage.css',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/HomePage/HomePage.tsx'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  adding "use client" to assets/rsc-Counter.tsx-1.mjs
  serverValues []
  chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/jsx-runtime.rea
  ct-server.js?commonjs-module',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-r
  untime.react-server.production.min.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-runti
  me.react-server.production.min.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-r
  untime.react-server.development.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-runti
  me.react-server.development.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/jsx-runtime.react-s
  erver.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/jsx-runtime.rea
  ct-server.js?commonjs-es-import'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/react.react-ser
  ver.js?commonjs-module',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react
  -server.production.min.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react-ser
  ver.production.min.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react
  -server.development.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react-ser
  ver.development.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/react.react-server.
  js'
  ]
  clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounte
  r.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx
  '
  ]
  serverValues []
  rendering chunks...
  ../dist/rsc/server-build-manifest.json                      2.72 kB
  ../dist/rsc/assets/AboutPage-Dbp45Pwn.css                   0.02 kB
  ../dist/rsc/assets/HomePage-CqgNLg45.css                    0.05 kB
  ../dist/rsc/entry.server.mjs                                0.40 kB
  ../dist/rsc/assets/_commonjsHelpers-DWwsNxpa.mjs            0.40 kB
  ../dist/rsc/assets/rsc-Counter.tsx-1.mjs                    0.58 kB
  ../dist/rsc/assets/rsc-AboutCounter.tsx-0.mjs               0.61 kB
  ../dist/rsc/assets/AboutPage-B7crJHim.mjs                   0.98 kB
  ../dist/rsc/assets/HomePage-CNrEGr_u.mjs                    1.05 kB
  ../dist/rsc/entries.mjs                                     1.42 kB
  ../dist/rsc/assets/jsx-runtime.react-server-DDELuXdO.mjs   33.57 kB
  ../dist/rsc/assets/Document.mjs                            44.52 kB
  ../dist/rsc/assets/react.react-server-DjeTMJII.mjs         70.86 kB
  ../dist/rsc/rsdw-server.mjs                               153.02 kB
  βœ“ built in 292ms
  4. rscBuildCopyCssAssets
  ========================
  5. rscBuildClientEntriesMapping
  ===============================
  entryFile assets/rsc-Counter.tsx-1.mjs
  entryFile assets/rsc-AboutCounter.tsx-0.mjs
  clientEntries {
  'assets/rsc-Counter.tsx-1.mjs': 'assets/rsc-Counter.tsx-1-B9xnkLpn.mjs',
  'assets/rsc-AboutCounter.tsx-0.mjs': 'assets/rsc-AboutCounter.tsx-0-XTGa8w3u.mjs'
  }
  6. rscBuildRwEnvVars
  ====================
  Starting streaming server build...
-----------------------------------------------------------------------------------------------------------
Error: Command failed with exit code 1: node /Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/vite/bins/rw-vite-build.mjs --webDir="/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web" --verbose=false
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

TypeError: Module "file:///Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/dist/client/client-build-manifest.json" needs an import assertion of type "json"
    at new NodeError (node:internal/errors:405:5)
    at validateAssertions (node:internal/modules/esm/assert:94:15)
    at defaultLoad (node:internal/modules/esm/load:88:3)
    at DefaultModuleLoader.load (node:internal/modules/esm/loader:281:26)
    at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:192:22)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at #createModuleJob (node:internal/modules/esm/loader:216:17)
    at DefaultModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:169:34)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:154:17)
    at DefaultModuleLoader.import (node:internal/modules/esm/loader:245:28)
    at importModuleDynamically (node:internal/modules/cjs/loader:1185:37)
    at importModuleDynamicallyWrapper (node:internal/vm/module:428:21)
    at importModuleDynamically (node:internal/vm:105:46)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:87:14)
    at buildRouteManifest (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/vite/dist/buildRouteManifest.js:44:31)
    at buildFeServer (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/vite/dist/buildFeServer.js:60:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async buildWebSide (file:///Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/vite/bins/rw-vite-build.mjs:51:5) {
  code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}

Node.js v20.3.0

1. rscBuildAnalyze
==================

clientEntryFileSet [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverEntryFileSet []
clientEntryFiles {
  'rsc-AboutCounter.tsx-0': '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  'rsc-Counter.tsx-1': '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
}
serverEntryFiles {}

2. rscBuildClient
=================

vite v5.2.8 building for production...
transforming...
βœ“ 1431 modules transformed.
rendering chunks...
computing gzip size...
../dist/client/client-build-manifest.json                      2.29 kB β”‚ gzip:   0.48 kB
../dist/client/assets/Counter-C3erIBP5.css                     0.21 kB β”‚ gzip:   0.17 kB
../dist/client/assets/rwjs-client-entry-r4ru2H-Y.css           0.61 kB β”‚ gzip:   0.30 kB
../dist/client/assets/Counter-DVfxHF4Y.mjs                     0.09 kB β”‚ gzip:   0.09 kB
../dist/client/assets/jsx-runtime-C9RP5n2g.mjs                 0.76 kB β”‚ gzip:   0.37 kB
../dist/client/assets/rsc-Counter.tsx-1-B9xnkLpn.mjs           0.77 kB β”‚ gzip:   0.40 kB
../dist/client/assets/rsc-AboutCounter.tsx-0-XTGa8w3u.mjs      0.93 kB β”‚ gzip:   0.45 kB
../dist/client/assets/index-CDFY8Y64.mjs                      11.82 kB β”‚ gzip:   3.62 kB
../dist/client/rsdw-client.mjs                                22.41 kB β”‚ gzip:   6.35 kB
../dist/client/rd-server.mjs                                 235.36 kB β”‚ gzip:  56.79 kB
../dist/client/assets/index-D8GnguU9.mjs                     260.17 kB β”‚ gzip:  62.58 kB
../dist/client/assets/rwjs-client-entry-Dhmu8_Pe.mjs       1,082.77 kB β”‚ gzip: 219.86 kB
βœ“ built in 1.97s

3. rscBuildForServer
====================

vite v5.2.8 building SSR bundle for production...
transformClientModule names [ 'AboutCounter' ]
transformClientModule names [ 'Counter' ]
transforming...
css-preinit: pages/AboutPage/AboutPage.tsx x1 (assets/Counter-C3erIBP5.css)
css-preinit: pages/HomePage/HomePage.tsx x1 (assets/Counter-C3erIBP5.css)
βœ“ 186 modules transformed.
chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/vite/dist/entries.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/entries.ts'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/server.edge.js?commonjs-module',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/server.edge.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react-server-dom-webpack/server.edge.js?commonjs-entry'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/entry.server.tsx'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/web/dist/components/htmlTags.js?commonjs-exports',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/object/define-property.js?commonjs-module',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/global.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/fails.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/function-bind-native.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/function-apply.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/function-uncurry-this.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/classof-raw.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/function-uncurry-this-clause.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-callable.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-get-own-property-descriptor.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/descriptors.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/function-call.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-property-is-enumerable.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-property-is-enumerable.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/create-property-descriptor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/indexed-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-null-or-undefined.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/require-object-coercible.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-indexed-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/path.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/get-built-in.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-is-prototype-of.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/engine-user-agent.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/engine-v8-version.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/symbol-constructor-detection.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/use-symbol-as-uid.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-symbol.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/try-to-string.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/a-callable.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/get-method.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ordinary-to-primitive.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/shared-store.js?commonjs-module',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/define-global-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/shared-store.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/shared.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/has-own-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/uid.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/well-known-symbol.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-primitive.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-property-key.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/document-create-element.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/ie8-dom-define.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-get-own-property-descriptor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-forced.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/function-bind-context.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-define-property.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/v8-prototype-define-bug.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/an-object.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/object-define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/create-non-enumerable-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/export.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.object.define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/object/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/stable/object/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/actual/object/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/full/object/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/features/object/define-property.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/core-js/object/define-property.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js?commonjs-module',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.string.starts-with.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/math-trunc.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-integer-or-infinity.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-length.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-string-tag-support.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/classof.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/to-string.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-regexp.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/not-a-regexp.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/correct-is-regexp-logic.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.string.starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/get-built-in-prototype-method.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/string/virtual/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/instance/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/stable/instance/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/actual/instance/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/full/instance/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/features/instance/starts-with.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/core-js/instance/starts-with.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.array.map.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/length-of-array-like.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-array.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/inspect-source.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/is-constructor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/array-species-constructor.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/array-species-create.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/array-iteration.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/internals/array-method-has-species-support.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/modules/es.array.map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/array/virtual/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/es/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/stable/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/actual/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/full/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/core-js-pure/features/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@babel/runtime-corejs3/core-js/instance/map.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/web/dist/components/htmlTags.js',
  ... 1 more item
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [ '\x00commonjsHelpers.js' ]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/AboutPage/AboutPage.css',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/AboutPage/AboutPage.tsx'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
adding "use client" to assets/rsc-AboutCounter.tsx-0.mjs
serverValues []
chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/HomePage/HomePage.module.css',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/HomePage/HomePage.css',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/pages/HomePage/HomePage.tsx'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
adding "use client" to assets/rsc-Counter.tsx-1.mjs
serverValues []
chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/jsx-runtime.react-server.js?commonjs-module',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-runtime.react-server.production.min.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-runtime.react-server.production.min.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-runtime.react-server.development.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react-jsx-runtime.react-server.development.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/jsx-runtime.react-server.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/jsx-runtime.react-server.js?commonjs-es-import'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
chunk.moduleIds [
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/react.react-server.js?commonjs-module',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react-server.production.min.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react-server.production.min.js',
  '\x00/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react-server.development.js?commonjs-exports',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/cjs/react.react-server.development.js',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/react/react.react-server.js'
]
clientValues [
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/AboutCounter.tsx',
  '/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/web/src/components/Counter/Counter.tsx'
]
serverValues []
rendering chunks...
../dist/rsc/server-build-manifest.json                      2.72 kB
../dist/rsc/assets/AboutPage-Dbp45Pwn.css                   0.02 kB
../dist/rsc/assets/HomePage-CqgNLg45.css                    0.05 kB
../dist/rsc/entry.server.mjs                                0.40 kB
../dist/rsc/assets/_commonjsHelpers-DWwsNxpa.mjs            0.40 kB
../dist/rsc/assets/rsc-Counter.tsx-1.mjs                    0.58 kB
../dist/rsc/assets/rsc-AboutCounter.tsx-0.mjs               0.61 kB
../dist/rsc/assets/AboutPage-B7crJHim.mjs                   0.98 kB
../dist/rsc/assets/HomePage-CNrEGr_u.mjs                    1.05 kB
../dist/rsc/entries.mjs                                     1.42 kB
../dist/rsc/assets/jsx-runtime.react-server-DDELuXdO.mjs   33.57 kB
../dist/rsc/assets/Document.mjs                            44.52 kB
../dist/rsc/assets/react.react-server-DjeTMJII.mjs         70.86 kB
../dist/rsc/rsdw-server.mjs                               153.02 kB
βœ“ built in 292ms

4. rscBuildCopyCssAssets
========================

5. rscBuildClientEntriesMapping
===============================

entryFile assets/rsc-Counter.tsx-1.mjs
entryFile assets/rsc-AboutCounter.tsx-0.mjs
clientEntries {
  'assets/rsc-Counter.tsx-1.mjs': 'assets/rsc-Counter.tsx-1-B9xnkLpn.mjs',
  'assets/rsc-AboutCounter.tsx-0.mjs': 'assets/rsc-AboutCounter.tsx-0-XTGa8w3u.mjs'
}

6. rscBuildRwEnvVars
====================

Starting streaming server build...

    at makeError (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _Task.task [as taskFn] (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/@redwoodjs/cli/dist/commands/buildHandler.js:133:11)
    at async _Task.run (/Users/stmiller/Library/CloudStorage/Dropbox/node/redwood_rsc_app/node_modules/listr2/dist/index.cjs:2049:11)

-----------------------------------------------------------------------------------------------------------
Need help?
 - Not sure about something or need advice? Reach out on our Forum
 - Think you've found a bug? Open an issue on our GitHub
 - Here's your unique error reference to quote: '5b2eb9fc-1c69-4252-b153-20e3d1c6cb3e'
stmiller-shamrock commented 6 months ago

Ok, for one last test of things I upgraded node to v20.12.2 and changed the asserts back to withs and that worked. So some issue that must have been fixed between version 20.3.0 and 20.11.0 of node. In 20.10.0, from the research below.

At first I thought serve didn't work after that, but it was because I didn't run install again. So I am guessing the node version should be minimum 20.10.0.

Also I'm the same person, just logged into my work account.

Notes:

Tobbe commented 6 months ago

Wow! Thanks for digging that up. I guess since it was an experimental feature they felt like they could "break" it in a minor version πŸ˜…

Here's the PR that changed it: https://github.com/nodejs/node/pull/50140 And here's the PR that got it released: https://github.com/nodejs/node/pull/50682 (2023-11-22, Version 20.10.0 'Iron' (LTS))

It was also backported to node 18 https://github.com/nodejs/node/pull/52165 (2024-03-26, Version 18.20.0 'Hydrogen' (LTS)).

So we won't do any code changes for this. But I do need to figure out how to keep track of this for the release notes for when we release RSCs. And/or how to tell people they need to upgrade Node.

Josh-Walker-GM commented 4 months ago

Just encountered with with @ahaywood on the project for the bighorn website: https://github.com/redwoodjs/bighorn-website. That doesn't use RSCs but it is on canary and using SSR.

I didn't notice it but Amy did. She was on 20.3.0 and then after upgrading to 20.14.0 the issue resolved itself.

Thanks everyone for having debugged this issue. We could have lost a lot of time trying to find out what it was.