denoland / docs

Deno documentation, examples and API Reference. Powered by Lume.
https://docs.deno.com
MIT License
81 stars 178 forks source link

The steps described in `Build a React App` don't work #1081

Open gaurav-nelson opened 2 weeks ago

gaurav-nelson commented 2 weeks ago

File: runtime/tutorials/how_to_with_npm/react.md

> deno run -A npm:create-vite@latest --template react-ts
✔ Project name: … test-project

Scaffolding project in /Users/***/***/***/test-project...

Done. Now run:

  cd test-project
  npm install
  npm run dev

> cd test-project/

> deno install
error: npm package '@rollup/rollup-freebsd-arm64' does not exist.

> deno task dev
Task dev vite
vite: command not found

> deno --version
deno 2.0.3 (stable, release, aarch64-apple-darwin)
v8 12.9.202.13-rusty
typescript 5.6.2

I am running it on macOS 14.7 (23H124) Darwin 23.6.0 arm64

ismail0ka commented 2 weeks ago

It depends on rollup-linux-x64-gnu add it as an optional Dependency it should resolve the problem Append this to the package.json "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.6.1" }