BeTomorrow / micro-observables

A simple Observable library that can be used for easy state management in React applications.
MIT License
104 stars 8 forks source link

"Cannot find module './lib'" ReactDOM Batching #10

Closed danielrea closed 4 years ago

danielrea commented 4 years ago

Hello,

Thanks for creating and maintaining this package! I've come across an issue when trying to implement ReactDOM Batching in version 1.5.0-rc4.

Uncaught Error: Cannot find module './lib'
    at webpackMissingModule (batchingForReactDom.js:2)
    at Object../node_modules/micro-observables/batchingForReactDom.js (batchingForReactDom.js:2)
    at __webpack_require__ (bootstrap:832)
    at fn (bootstrap:129)
    at Module../src/index.tsx (index.tsx:2)
    at __webpack_require__ (bootstrap:832)
    at fn (bootstrap:129)
    at Object.0 (debug-relayer.ts:13)
    at __webpack_require__ (bootstrap:832)
    at bootstrap:970

Sure enough when I look at the installed module there is no such ./lib folder in the directory. Please advise on what I may be missing here.

simontreny commented 4 years ago

My bad, I forgot to change it to "dist" when I migrated to tsdx. It is now fixed. I've just published a new 1.5.0-rc5 version, let me know if you still have issues with that.