You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not find a declaration file for module '../../node_modules/effect/dist/esm/index'.
'/tmp/nitro-app/node_modules/effect/dist/esm/index.js' implicitly has an 'any' type. ts(7016)
Replacing esm in the line to dts fixes the problem, but it is rewritten on every generation.
Additional context
I've tried adding typeFrom: "../../node_modules/effect/dist/dts/index" to the import config as a temporary workaround, but it did not do anything: nitro-imports.d.ts still generates with effect/dist/esm/index.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Node: v20.12.2
Nitro: 2.9.6
Config:
Reproduction
https://github.com/rijenkii/nitro-effect-autoimport-bug
Describe the bug
After adding
effect
to autoimport, references ofEffect
in the project get assigned typeany
:In
.nitro/types/nitro-imports.d.ts
row which importsEffect
looks like this:And it also contains the following error:
Replacing
esm
in the line todts
fixes the problem, but it is rewritten on every generation.Additional context
I've tried adding
typeFrom: "../../node_modules/effect/dist/dts/index"
to the import config as a temporary workaround, but it did not do anything:nitro-imports.d.ts
still generates witheffect/dist/esm/index
.Logs
No response
The text was updated successfully, but these errors were encountered: