Skip to content

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Jul 27, 2025

Description

Extracted from #632

Probably still cryptic but better

### before
assert(
    typeof input === 'object' &&
      !Array.isArray(input) &&
      name in input &&
      typeof input[name] === 'string')

### after
AssertionError [ERR_ASSERTION]: [vite-rsc:getEntrySource] expected 'build.rollupOptions.input' to be an object with a 'index' property that is a string, but got "/home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/examples/react-router/cf/entry.ssr.tsx"

@hi-ogawa hi-ogawa marked this pull request as ready for review July 27, 2025 03:18
@hi-ogawa hi-ogawa merged commit 4568556 into main Jul 27, 2025
19 checks passed
@hi-ogawa hi-ogawa deleted the 07-27-fix_rsc_add_getentrysource_assertion_error_message branch July 27, 2025 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant