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

Bug | typscript linting not able to detect bun-livereload when tsconfig module resolution set to "nodenext" #1

Open
i-Welch opened this issue Dec 19, 2022 · 0 comments

Comments

@i-Welch
Copy link

i-Welch commented Dec 19, 2022

Replication Steps

  • create a new bun project using bun init
  • make sure the tsconfig.json has "moduleResolution": "nodenext" but I think this is the default for a new bun init project (from no template)
  • open index.ts and add import liveReload from "bun-livereload";
  • expect it to import just fine
  • instead you get
    image
  • go to tsconfig.json and change moduleResolution to node
  • reload window
  • expect import error to cease

Detail

  • This is done in wsl 2.0 ubuntu image on bun 0.3.0 in the vscode editor. I can provide version for all these if you can't readily reproduce

Work Around

Go to tsconfig.json and set "moduleResolution" to "node"

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

1 participant