Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why just importing the module I get this error. #46

Open
karen2105 opened this issue Jun 12, 2018 · 6 comments
Open

Why just importing the module I get this error. #46

karen2105 opened this issue Jun 12, 2018 · 6 comments

Comments

@karen2105
Copy link

karen2105 commented Jun 12, 2018

Uncaught TypeError: Cannot read property 'Buffer' of undefined
    at Object.com.cognitect.transit.handlers.defaultHandlers (transit.js?8505:3222)
    at new com.cognitect.transit.handlers.Handlers (transit.js?8505:3228)
    at new com.cognitect.transit.impl.writer.JSONMarshaller (transit.js?8505:3482)
    at Object.com.cognitect.transit.writer (transit.js?8505:3770)
    at createWriter (index.js?d558:63)
    at createInstanceFromHandlers (index.js?d558:240)
    at eval (index.js?d558:303)
    at Object.<anonymous> (bootstrap d24a12cfe220b2bca8bc:758)
    at __webpack_require__ (bootstrap d24a12cfe220b2bca8bc:712)
    at fn (bootstrap d24a12cfe220b2bca8bc:117)
@himalayagupta
Copy link

himalayagupta commented Jan 29, 2019

While running the test i am also getting the same error

     import transit from 'transit-immutable-js';
     ^
      at Object.Buffer [as defaultHandlers] (node_modules/transit-js/transit.js:3222:37)
      at new defaultHandlers (node_modules/transit-js/transit.js:3228:34)
      at new Object.<anonymous>.com.cognitect.transit.impl.writer.JSONMarshaller (node_modules/transit-js/transit.js:3482:19)
      at Object.<anonymous>.com.cognitect.transit.writer (node_modules/transit-js/transit.js:3770:13)
      at writer (node_modules/transit-immutable-js/index.js:63:18)
      at createWriter (node_modules/transit-immutable-js/index.js:240:16)
      at Object.createInstanceFromHandlers (node_modules/transit-immutable-js/index.js:303:18)
      at Object.<anonymous> (src/store/sagas/reports.js:26:1)```

@glenjamin  Can you please help here. Thanks

@himalayagupta
Copy link

@glenjamin Can you please help here? thanks

@glenjamin
Copy link
Owner

If you can provide a reproducible testcase with details about the versions of Node etc, I might look if I get some time.

@sitch
Copy link

sitch commented Jul 14, 2020

bump

@glenjamin
Copy link
Owner

My last comment still stands.

The stack trace there seems to point to transit itself

@sitch
Copy link

sitch commented Jul 14, 2020

My last comment still stands.

The stack trace there seems to point to transit itself

Agreed -- I opened similar issues on transit-js and react-awesome-query-builder/issues

here:
cognitect/transit-js#54

and here:
ukrbublik/react-awesome-query-builder#254

The only strange thing was that in the react-awesome-query-builder lib they require (not import) transit-immutable-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants