examples icon indicating copy to clipboard operation
examples copied to clipboard

Cannot find package '@effect/eslint-plugin' for http example

Open jurgob opened this issue 4 months ago • 0 comments

What version of Effect is running?

No response

What steps can reproduce the bug?

step to reproduce it:

pnpm create effect-app@latest MY-EXAMPLE
✔ What type of project would you like to create? …  Example
✔ What project template should be used? …  HTTP Server
....
Done in 12.9s

(every other options is left as the default one)

then run

pnpm lint

you are gonna get this error:

jurgo@192 health-diary-server % pnpm lint

> [email protected] lint /Users/jurgo/Workspace/health-diary-server
> eslint "**/{src,test,examples,scripts,dtslint}/**/*.{ts,mjs}"


Oops! Something went wrong! :(

ESLint: 9.34.0

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@effect/eslint-plugin' imported from /Users/jurgo/Workspace/health-diary-server/eslint.config.mjs
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
    at packageResolve (node:internal/modules/esm/resolve:767:81)
    at moduleResolve (node:internal/modules/esm/resolve:853:18)
    at defaultResolve (node:internal/modules/esm/resolve:983:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:783:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:707:25)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:690:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:183:49)
 ELIFECYCLE  Command failed with exit code 2.

I;m using node v22.18.0

the issue get solved doing

pnpm i @effect/eslint-plugin

What is the expected behavior?

pnpm lint should work

What do you see instead?

it failed with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@effect/eslint-plugin' imported from eslint.config.mjs

Additional information

No response

jurgob avatar Sep 01 '25 12:09 jurgob