Skip to content
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

Quickstart of React example failed in start script #75

Closed
2 tasks done
lbittencurt opened this issue May 3, 2022 · 4 comments
Closed
2 tasks done

Quickstart of React example failed in start script #75

lbittencurt opened this issue May 3, 2022 · 4 comments

Comments

@lbittencurt
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

3.29.0

Plugin version

No response

Node.js version

16.x

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

11.6.2

Description

I tried to use the QuickStart example with React, I've followed the steps as per the docs:

  1. create a folder
  2. install all dependencies
  3. create a app.mjs file according with the snippet
  4. create a index.jsx file in views folder

When I run the command "node app.mjs" I have the following response:

❯ node app.mjs                                                        
file:///Users/lucasbittencurt/www/ssr-vite/app.mjs:9
await app.vite.commands()
               ^

TypeError: app.vite.commands is not a function
    at file:///Users/lucasbittencurt/www/ssr-vite/app.mjs:9:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)```

### Steps to Reproduce

Follow the quickstart for React with node version 16.x 

### Expected Behavior

Expected to run a Fastify server correctly.
@marcod1419
Copy link

Seeing the same issue here!

@galvez
Copy link
Member

galvez commented May 6, 2022

Guys, new release will be out with updated docs and examples this weekend!

@galvez
Copy link
Member

galvez commented May 6, 2022

Will keep this thread open until the announcement :)

@galvez
Copy link
Member

galvez commented May 17, 2022

Closing this as the React examples in v3 release are all working now!

@galvez galvez closed this as completed May 17, 2022
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

No branches or pull requests

3 participants