lucacasonato / esbuild_deno_loader

Deno module resolution for `esbuild`
https://deno.land/x/esbuild_deno_loader
MIT License
160 stars 43 forks source link

Relative path are not loaded #89

Open carere opened 11 months ago

carere commented 11 months ago

It seems that on every relative path, I get the following error:

✘ [ERROR] Could not resolve "/home/carere/Projects/Ashiso/deno_zentai/apps/karada/src/components/organisms/Graph/controls/ContractSelector/ContractPreview/index.tsx" [plugin deno-loader]

    apps/karada/src/components/organisms/Graph/controls/ContractSelector/index.tsx:19:32:
      19 │ import { ContractPreview } from "./ContractPreview/index.tsx";
         ╵                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  The plugin "deno-loader" didn't set a resolve directory, so esbuild did not search for
  "/home/carere/Projects/Ashiso/deno_zentai/apps/karada/src/components/organisms/Graph/controls/ContractSelector/ContractPreview/index.tsx"
  on the file system.

I'm not well-versed into esbuild, and I don't know how to fix this issue. Maybe someone got a clue ??

lucacasonato commented 7 months ago

What does is your config file look like?