biddster / node-red-contrib-time-range-switch

A simple Node-RED node that routes messages depending on the time.
18 stars 6 forks source link

0.6.0 "TypeError: moment.twix is not a function" #19

Closed cbulock closed 6 years ago

cbulock commented 6 years ago

Since upgrading to the newest version, none of my flows using this node have been working.

Showing "TypeError: moment.twix is not a function" in the logs. Tried reinstalling via NPM. Switching back to 0.5.1 corrected the issue

biddster commented 6 years ago

Thanks for the report @cbulock. It's an odd one as all the tests pass here and work fine.

What version of nodejs and node-red are you using?

Unpuertomex commented 6 years ago

I'm having the same issue with my nodes, every one of them is showing "TypeError: moment.twix is not a function". How do you switch back to 0.5.1?

nodejs - v8.11.2 node-red - v0.18.7

cbulock commented 6 years ago

I'm using the nodered/node-red-docker:v8 docker container for NodeRed.

nodejs: v8.11.2 node-red: 0.18.7

cbulock commented 6 years ago

@Unpuertomex you can switch back to an older version by running npm install node-red-contrib-time-range-switch@0.5.1

Unpuertomex commented 6 years ago

@cbulock thank you that did the trick

Azburkabas commented 6 years ago

Hi, just to report i too have the same issues with 0.6.0. Node-RED version: 0.18.7 node.js version: 8.11.3 npm version: 6.2.0 Platform/OS: Ubuntu 17.10

Reverting to 0.5.1 helps.

biddster commented 6 years ago

I've just released 0.6.1 with a potential fix, let me know how you get on.

cbulock commented 6 years ago

Sorry for the delay on testing this out. Upgraded yesterday, and after a day of use, everything is looking good on my end.

TerryLansdown commented 5 years ago

Hi, no luck with 0.6.1. I'm on Node-red version 6.5.0.

Tried v 0.5.1, no luck with that either getting 'TypeError: moment.twix is not a function'.

Sorry.

biddster commented 5 years ago

Apologies @TerryLansdown, at a bit of a loss at the moment. I'll continue to investigate.

TerryLansdown commented 5 years ago

No problem, very much appreciate the effort!

biddster commented 5 years ago

@TerryLansdown can you confirm your node-red and nodejs versions please? From the above I'm assuming you're using nodejs 6.5.0 as there's no node-red version corresponding to that. E.g. I'm using 0.19.4.

TerryLansdown commented 5 years ago

Hi, aplogies. I’ve moved on. I’m using Bigtimer+ now. I hope you can get things worked out.