-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: client-build-manifest.json needs an import assertion of type "json" when using RSC #10492
Comments
@eristoddle Thanks for your bug report. I'll try to reproduce it on my end, but I'm not feeling too hopeful 😅 Could you check one more thing for me please? What version of TypeScript are you using? |
This is from the yarn.lock file: `"typescript@npm:5.4.5": "typescript@patch:typescript@npm%3A5.4.5#optional!builtin<compat/typescript>": |
Double checking the TS docs (release notes) I can confirm that it's at least supposed to be Node also supports I just now tried your reproduction steps (again) and can't reproduce.
And looking at my transpiled files in node_modules I see that I also have Can you please show your full error message? See if that gives us any more hints |
Here is the complete error from the build step. It also happens with the serve step too, if I change 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' |
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: |
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: nodejs/node#50140 It was also backported to node 18 nodejs/node#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. |
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 Thanks everyone for having debugged this issue. We could have lost a lot of time trying to find out what it was. |
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:
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 therscBuildRwEnvVars
step of building. It pointed to line 44 in/node_modules/@redwoodjs/vite/dist/buildRouteManifest.js
, which looked like this:I just kind of guessed and changed
with
toassert
: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 replacedwith
withassert
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?
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: