dfilatov / vow-fs

Vow-based file I/O for Node.js
MIT License
28 stars 8 forks source link

Error on require #16

Closed awinogradov closed 9 years ago

awinogradov commented 9 years ago

When i require vow-fs module i see this

node_modules/vow-fs/lib/fs.js:13
    openFilesQueue = new Queue(),
                     ^
TypeError: object is not a function
dfilatov commented 9 years ago

Which versions of vow-fs and vow-queue have been installed?

awinogradov commented 9 years ago

vow-fs@0.3.2 node_modules/vow-fs ├── vow@0.4.4 ├── vow-queue@0.3.1 ├── node-uuid@1.4.0 └── glob@3.2.8 (inherits@2.0.1, minimatch@0.2.14)

dfilatov commented 9 years ago

It's strange. I've installed the same configuration and everything is working. Could you investigate what exactly require('vow-queue') returns in your case?

awinogradov commented 9 years ago

What exactly tell? I require vow-fs in node module. Like this, and i really don't know why it don't work:(

dfilatov commented 9 years ago

Does it reproduce with clean checkout of your project? Could you send me content of ./node_modules/vow-fs/node_modules/vow-queue/lib/queue.js?

awinogradov commented 9 years ago

Content of queue.js and i see error on clean checkout too :(

dfilatov commented 9 years ago

Could you send me output of console.log(typeof modules); within your code?

awinogradov commented 9 years ago

object

dfilatov commented 9 years ago

Oh, now I see what's happening. You have ymaps modules on server-side and vow-queue can't work in both environment (ymaps modules and commonjs) simultaneously. I'll fix it.

awinogradov commented 9 years ago

Wow, all right! Thanks! You're cool :)

dfilatov commented 9 years ago

Try to up vow-fs to 0.3.3

awinogradov commented 9 years ago

.listDir work fine :) Thanks for your work!!!

dfilatov commented 9 years ago

Thanks for report )