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

RRule undefined #108

Closed
grigio opened this issue Aug 29, 2015 · 7 comments
Closed

RRule undefined #108

grigio opened this issue Aug 29, 2015 · 7 comments

Comments

@grigio
Copy link

grigio commented Aug 29, 2015

Inside NPM webpack

var RRule = require('rrule').RRule;
// RRule is undefined

// This works
var RRule = require('rrule');
// or
import RRule from "rrule";
grigio added a commit to grigio/rrule that referenced this issue Aug 29, 2015
@arolson101
Copy link
Collaborator

I have the same problem. Looks like there was an update a day or so ago but it's still broken 😢

@jkbrzt
Copy link
Owner

jkbrzt commented Jan 10, 2016

How to fix that?

@arolson101
Copy link
Collaborator

In nlp.js I changed

if (serverSide) {
    RRule = require('./rrule').RRule;

to

if (serverSide) {
    RRule = require('./rrule');

but I don't think that's the whole story; in my webpacked project I have to do var RRule = require("rrule") instead of var RRule = require("rrule").RRule

@jpmurray
Copy link

Anyone got this to work? I can get RRule to work, but I can't use toText() for the life of me :/

@nsb
Copy link

nsb commented Nov 8, 2016

I'm having the same issue using webpack. I can't get nlp.js to work.

@nsb
Copy link

nsb commented Nov 8, 2016

Ok, everything worked fine by using latest master.

@arolson101
Copy link
Collaborator

I think this issue is dead. Please update if more support is needed!

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

No branches or pull requests

5 participants