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

change file.base twice will end with "Error: no writecb in Transform classh" #5

Closed
nxf opened this issue Dec 12, 2014 · 3 comments
Closed
Assignees

Comments

@nxf
Copy link

nxf commented Dec 12, 2014

For some reason, I need change 'base' property of current file, after that I will change back old 'base' property. The code looks like this:

.pipe(tap(function(file){
   file.old_base = file.base;  
   file.base = file.base+"js/";  
}))
.pipe(something_otherprocessing())
.pipe(tap(function(file){
  file.base = file.old_base;
}))

When running, It will throw exception "Error: no writecb in Transform classh". when I remove the second tap calling, running will be ok, but I can not get the original 'base' property.

So any one can help me out?

@dotnetCarpenter
Copy link
Collaborator

@nxf What is the something_otherprocessing() doing? I tried to reproduce your exception in edea6ee tests/dest.test.coffee#L86 but to no avail.

@dotnetCarpenter
Copy link
Collaborator

Please test again with the latest release.

@dotnetCarpenter
Copy link
Collaborator

@nxf do you have a link to your old code that broke? If yes, can you post it here, so I can create a test-case?

I'm closing this for now, until I get further information.

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

No branches or pull requests

2 participants