rrulestr not working when using npm install

Created on 16 Feb 2016  ·  7Comments  ·  Source: jakubroztocil/rrule

I have done 'npm install rrule'. The files are downloaded in to node_modules, but the lib/rrule.js file is different from the one in the git repository.

Specifically, there is no export for rrulestr (or rruleset).

//=============================================================================
// Export
//=============================================================================

if (serverSide) {
    module.exports = {
        RRule: RRule
        // rruleset: rruleset
    }
}
if (typeof ender === 'undefined') {
    root['RRule'] = RRule;
    // root['rruleset'] = rruleset;
}

if (typeof define === "function" && define.amd) {
    /*global define:false */
    define("rrule", [], function () {
        return RRule;
    });
}

Most helpful comment

When a update in npm repository to the current version? because is not the same version than here, few missing functions..

All 7 comments

It's also missing RRuleSet.

When a update in npm repository to the current version? because is not the same version than here, few missing functions..

Has there been any fix yet? Tried to use it tonight but no luck... :(

Same issue with on today's npm install. Should we expect a reply?

UPDATE: A quick text diff of the lib/rrule.js and the version offered for download in the README.md (which does export the missing constructs) shows extensive difference in format.

UPDATE 2: While not a good perm solution, if you swap the rrule.js in your node_modules folder with the one downloaded out of the README.md file link, it works.

Same issue today

Hey guys, I don't know if a new release is coming to npm, so, in the mean time, we can use RRule.fromString("...");

I believe this has been fixed. Let me know if there continue to be issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agordeev picture agordeev  ·  16Comments

fatshotty picture fatshotty  ·  5Comments

berardo picture berardo  ·  9Comments

marcoancona picture marcoancona  ·  22Comments

anthwinter picture anthwinter  ·  11Comments