Skip to content

Instantly share code, notes, and snippets.

@developit
Last active February 11, 2020 18:03
Show Gist options
  • Save developit/f1a3425ded9b52206c372b6c6b54ddcb to your computer and use it in GitHub Desktop.
Save developit/f1a3425ded9b52206c372b6c6b54ddcb to your computer and use it in GitHub Desktop.
# scaffold your project
npx preact-cli@rc create default my-app && cd my-app
# upgrade to Preact X
npm i -D preact-cli@rc && npm i preact@latest preact-router@latest preact-render-to-string@latest
npm rm preact-compat
@ciampo
Copy link

ciampo commented Jul 4, 2019

As highlighted in this issue, the script should also npm uninstall -S preact-compat and npm i preact-render-to-string@">=5.0.2"

@developit
Copy link
Author

Ah thanks @ciampo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment