New fresh project comes out of the box with errors
I created a new fresh project on linux, I am using VsCode and im getting many errors although the project seems to run fine with them? Is there some way I could solve these errors or get VsCode to ignore them? Included are just a few of the errors im seeing but they all follow that same "cant find module" convention
7 Replies
Wow, when did Fresh get a _nodemodules folder? And why?
If you init a project with Tailwind, it comes integrated via npm specifiers and node_modules.
You can see in your console that the Fresh project started OK, thus the error you are seeing is in VS Code. It looks like you haven't installed or enabled the Deno LSP plugin.
Does that mean when using Tailwind you must AOT compile?
I don't think so, but it will be much slower. Locally (with tailwind integrated) it 'just works' and is very fast without any additional configuration.
I have the deno extension installed but I did not run Deno: enable, after doing so however now all of my errors have change to say "realtive import path not prefixed"
Hmm. I'll assume you haven't changed the
deno.json
file created. In which case, try restarting the language server (Deno: Restart Language Server
command in VS code) and/or restarting VS Code. I've just upgraded to 1.41.3 and have the same import as you without issue. Finally, check you have the latest LSP extension installed (I'm running v3.35.1).
Also just noticed that you are on VSCodium. If none of the above suggestions work, check to see if it works in VSCode, as this is the only 'officially' supported IDE for the LSP.switching to VsCode solved my issue, ty for your help