Giter VIP home page Giter VIP logo

Comments (10)

kozlovzxc avatar kozlovzxc commented on May 30, 2024

Maybe it's related to #65

from logger.

AlexandrHoroshih avatar AlexandrHoroshih commented on May 30, 2024

Looks like a effector/effector#601 🤔

from logger.

kozlovzxc avatar kozlovzxc commented on May 30, 2024

Just noticed, that I have outdated effector version (v21 compared to latest v22), going to update and check if it still persists

from logger.

kozlovzxc avatar kozlovzxc commented on May 30, 2024

Updated all packages to the latest versions, now there is this error 🤔

image

        "effector": "^22.1.2",
        "effector-react": "^22.0.6",
        "effector-logger": "^0.13.3",

from logger.

AlexandrHoroshih avatar AlexandrHoroshih commented on May 30, 2024

🤔 Could you try to clear cache of the bundler? Just in case

from logger.

kozlovzxc avatar kozlovzxc commented on May 30, 2024

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/

image

And if I use stackblitz to reproduce it, it works
image

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.

kozlovzxc avatar kozlovzxc commented on May 30, 2024

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.

kozlovzxc avatar kozlovzxc commented on May 30, 2024

Btw, maybe this is resolved issue, but maybe it relates to parcel somehow again. Looks like names are minified for [email protected] & [email protected]

image

from logger.

kozlovzxc avatar kozlovzxc commented on May 30, 2024

Please let me know if I can help somehow or if you need any other details 🙏

from logger.

AlexandrHoroshih avatar AlexandrHoroshih commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.