Pitanga
Pitanga4mo ago

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
No description
No description
7 Replies
NDH
NDH4mo ago
Wow, when did Fresh get a _nodemodules folder? And why?
cknight
cknight4mo ago
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.
NDH
NDH4mo ago
Does that mean when using Tailwind you must AOT compile?
cknight
cknight4mo ago
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.
Pitanga
Pitanga4mo ago
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"
No description
cknight
cknight4mo ago
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.
Pitanga
Pitanga4mo ago
switching to VsCode solved my issue, ty for your help
More Posts
Is there a deno function for inputting prompt reply without pressing enter?Normally, one has to press enter for the input to be accepted. I was wondering if there was a versioSetting Deno.Command priority and affinity (on windows)Is it possible to set a tasks / commands priority and affinity directly? Code: ```ts await new DenoIs there a way to write a Deno.AtomicCheck that succeeds for any non-null versionstamp?You can write a Deno.AtomicCheck that fails if the versionstamp for a key-value pair in the KV storeImportTypeScript API + get value of `compilerOptions` with default options from `tsconfig.json`?Hello, I'm trying to figure out the proper way to do a few things: 1. What's the correct way to impHow to override the version from a dependency of a project's dependency from npmI'm currently using react-pdf as a dependency, react-pdf uses fontkit as a dependency, and fontkit uHow to publish global types with JSR?I was trying to republish my npm package with JSR via npm jsr package. It all went well with one excCaching results from APIHi, I'm currently working on a project where I get data from an API (https://www.robotevents.com/apiINTERNAL_SERVER_ERROR_2 / 500 response codeSeveral clients concurrently reported INTERNAL_SERVER_ERROR_2 with a 500 error on requests to a deplMy site seems to be under attackI receive a large amount of request last night. Does this mean my site is under attack...?Deno drizzle-kit migrate:pgI don't know if its drizzle error or Deno error... I saw path resolution problem, it is said `C:Use