Skip to content

When using tailwind, the deno.json generates deprecated nodeModulesDir #2813

Open
@crowlsyong

Description

@crowlsyong
  1. Update deno to latest version with deno upgrade
  2. Create a brand new fresh project with deno run -A -r https://fresh.deno.dev and select tailwind and vscode
  3. cd into project
  4. deno task start
  5. terminal throws this error: Warning "nodeModulesDir": true is deprecated in Deno 2.0. Use "nodeModulesDir": "auto" instead
  6. Simple fix: "nodeModulesDir": true should be "nodeModulesDir": "auto"
  7. Super awesome fix: fresh devs could update the way fresh generates the deno.json file so I don't have to do this every time.

P.S. I snooped around at the files in the fresh repo but I couldn't find where it incorrectly creates this part of the deno.json file. sorry for not putting up a merge request, i would have if i was better at this XD

P.P.S. Shout out to Marvin the goat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions