logger icon indicating copy to clipboard operation
logger copied to clipboard

`effector-logger/attach` is not exist, only `/dist/attach` works

Open domosedov opened this issue 4 years ago • 2 comments

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

domosedov avatar Oct 04 '21 15:10 domosedov

Bump for this

SQReder avatar Oct 14 '21 14:10 SQReder

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)

victordidenko avatar Oct 27 '21 14:10 victordidenko

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

AlexandrHoroshih avatar May 14 '23 17:05 AlexandrHoroshih