logger
logger copied to clipboard
`effector-logger/attach` is not exist, only `/dist/attach` works
import { attachLogger } from 'effector-logger/attach';
Could not find a declaration file for module 'effector-logger/attach'. '/node_modules/effector-logger/attach.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/effector-logger` if it exists or add a new declaration (.d.ts) file containing `declare module 'effector-logger/attach';`ts(7016)
Works as expected
import { attachLogger } from 'effector-logger/dist/attach';
node
14.16.1
typescript
4.4.3
effector
22.1.1
effector-logger
0.13.0
Bump for this
This issue is exactly about TS declarations, module "effector-logger/dist/attach" doesn't exist:
Module not found: Package path ./dist/attach is not exported from package /.../node_modules/effector-logger (see exports field in /.../node_modules/effector-logger/package.json)
Hello!
As of the recent '0.14.0' release, 'effector-logger' no longer includes 'effector-inspector' and integration with redux-devtools, so all related issues are gone.
/attach was also deleted
See the release notes for details https://github.com/effector/logger/releases/tag/v0.14.0