-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: guard: expect clock to be a unit (store, event or effect) or array of units #75
Comments
Maybe it's related to #65 |
Looks like a effector/effector#601 馃 |
Just noticed, that I have outdated effector version (v21 compared to latest v22), going to update and check if it still persists |
馃 Could you try to clear cache of the bundler? Just in case |
Looks like effector doesn't work with parcel itself 馃 Here is repo with just 2 packages - effector & parcel - https://github.com/kozlovzxc/parcel-effector-example/ And if I use stackblitz to reproduce it, it works As for code, I'm using example from docs themselves import {createEvent, createStore} from 'effector'
const addTodo = createEvent()
const clearTodoList = createEvent()
const $todos = createStore([])
// Will update store when addTodo is fired
.on(addTodo, (list, todo) => [...list, todo])
// Will reset store to default state when clearTodos is fired
.reset(clearTodoList)
// Log initial store value and each change
$todos.watch(todos => {
console.log('todos', todos)
})
// => todos []
addTodo('go shopping')
// => todos ['go shopping']
addTodo('go to the gym')
// => todos ['go shopping', 'go to the gym']
clearTodoList()
// => todos [] @AlexandrHoroshih Should I open issue in effector main repo? |
Just by downgrading version in this example, figure out that Maybe this will help someone. |
Please let me know if I can help somehow or if you need any other details 馃檹 |
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. Also, logger does not require any plugins to work anymore, so all related issues are gone too. See the release notes for details |
Hey 馃憢 Not sure if I'm doing something wrong or there is actually a bug.
So I have this packages installed:
And I'm using parcel v2 as a builder.
Every time I try to use anything related to
effector-logger
I get this errorI get this error either if I import bablel config or either just directly import something from 'effector-logger'.
Which other details can be useful?
The text was updated successfully, but these errors were encountered: