denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
96.47k stars 5.33k forks source link

Instructions for Deno + vite is broken #26414

Closed patchthecode closed 4 hours ago

patchthecode commented 5 hours ago

Instructions here as of oct-19-24 is broken https://docs.deno.com/runtime/tutorials/how_to_with_npm/vue/

  1. first i ran this deno run -A npm:create-vite
  2. then i ran this deno task dev and it failed here
patchthecode commented 4 hours ago

i needed to update to the latest deno

sc0paf commented 4 hours ago

Aye, theres more than one issue here.

  1. This tutorial will not resolve the imports if deno is not updated to 2.0.2 due to the bug. If deno --version is 2.0.0 you'll need to deno upgrade

  2. Not sure why - but the deno task dev will not work unless you cd [directory-just-created-by-create-vite] deno install cd .. now deno task dev runs the dev vite instance as expected.

Not sure if this is an npm interaction users are meant to already know about or if its just a missing step from the tutorial