-
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
yarn create wmr
rename public\index.js to public\index.tsx
- export async function prerender(data) {
+ export async function prerender(data: JSX.IntrinsicAttributes) {
return await ssr(<App {...data} />);
}then:
500 ./public\index.js - Unexpected token (./index.js:27:37)
25 | hydrate(<App />);
26 |
> 27 | export async function prerender(data: JSX.IntrinsicAttributes) {
| ^
28 | return await ssr(<App {...data} />);
29 | }
Bug occurs with:
-
wmrorwmr start(development) -
wmr serve -
wmr build(production)
Desktop (please complete the following information):
- Node Version: 17
- WMR Version: newest
Additional context
Does this mean we need to enable @rollup/plugin-typescript ourselves?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working