logger
logger copied to clipboard
Error: combine expects a store in a field clock
Добрый день! когда мы подключаем logger к NextJs + effector в ts получаем ошибку "Error: combine expects a store in a field clock"
если из .babelrc убрать настройку logger то все работает и ошибки нет
@Rastraponovich подскажи, какие у тебя версии эффектора, логгера и некст?
@Rastraponovich подскажи, какие у тебя версии эффектора, логгера и некст?
"effector": "22.1.2", "effector-logger": "0.13.1", "effector-react": "22.0.4", "next": "latest", "react": "17.0.2", "react-dom": "17.0.2",
Repository to reproduce - https://github.com/MichaelShipitsyn/effector-nextjs
Same issue.
After add babel plugin, application throw error:
effector.mjs:1 Uncaught Error: combine expects a store in a field clock
at r (effector.mjs:1)
at effector.mjs:1
at e (effector.mjs:1)
at yt (effector.mjs:1)
at p (effector.mjs:1)
at xt (effector.mjs:1)
at x (effector.mjs:1)
at newModel (model.ts:69)
On code:
const showSelected = createEvent()
sample({ // line 69
clock: showSelected,
source: [$store1, $store2],
target: $result,
fn: ([state1, state2]) => ({ state1, state2 }),
});
Looks like babel plugin conflicted with 'effector/babel-plugin'
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.
Logger's custom babel plugin was also deleted
See the release notes for details https://github.com/effector/logger/releases/tag/v0.14.0