Comments (10)
Maybe it's related to #65
from logger.
Looks like a effector/effector#601 🤔
from logger.
Just noticed, that I have outdated effector version (v21 compared to latest v22), going to update and check if it still persists
from logger.
Updated all packages to the latest versions, now there is this error 🤔
"effector": "^22.1.2",
"effector-react": "^22.0.6",
"effector-logger": "^0.13.3",
from logger.
🤔 Could you try to clear cache of the bundler? Just in case
from logger.
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?
from logger.
Just by downgrading version in this example, figure out that [email protected]
works and [email protected]
doesn't, also looks like [email protected]
is the latest version of logger, which works with [email protected]
.
Maybe this will help someone.
from logger.
Btw, maybe this is resolved issue, but maybe it relates to parcel somehow again. Looks like names are minified for [email protected]
& [email protected]
from logger.
Please let me know if I can help somehow or if you need any other details 🙏
from logger.
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.
Usage of "effector/babel-plugin" is still desirable though, as it provides useful metadata for the logs.
See the release notes for details
https://github.com/effector/logger/releases/tag/v0.14.0
from logger.
Related Issues (20)
- `effector-logger` breaks operations' priorities HOT 3
- logger throws errors on circular references HOT 1
- Debug domain with settings is not working HOT 1
- Logger shows some number instead of name HOT 3
- Cyclic object value error HOT 2
- Version 0.13.6 does not bundle typings for TypeScript HOT 2
- Upgrade effector version
- Move effector-inspector to peer dependencies HOT 2
- How to disable all Farfetched related logs
- Could not find a declaration file for module 'effector-logger' HOT 1
- CommonJS version tries to require() an ES Module and breaks
- Error: sample: expect clock to be a unit (store, event or effect) or array of units HOT 1
- "Unexpected token u in JSON at position 0" when call event without payload HOT 1
- Error: Error serializing `.initialState.bxdte["-2xkzew"].effect` returned from `getStaticProps` in "/catalog/[...slug]". HOT 6
- Error: combine expects a store in a field clock HOT 5
- RFC: Allow to configure effector-logger via babel-plugin settings HOT 3
- SyntaxError: Unexpected token u in JSON at position 0 when using chaining operator in store.map HOT 1
- Add option for non-babel users in readme HOT 3
- Can't resolve 'process/browser' in ...\node_modules\forest' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logger.