-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Example not working #35
Comments
must be something with the exports/bundling. Adding it to that codesandbox as a separated dependency works normally. |
That works! Thanks, @franciscotln ! Also neither of the other two examples work (for, it seems, the same issue). I think, examples on the landing page are important part of onboarding experience. Sadly, I couldn't properly setup codesandbox to use What is the next step here? |
I am having a similar issue in TypeScript. It seems like in some environments and for some modules, the To see how this varies based from module to module, you can try this in the same sandbox: console.log(fromEvent.__esModule); // > true
console.log(map.__esModule); // > undefined This is why For importing defaults, this is the code TypeScript transpiler generates: var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
}; Which, would resolve importing issues (by making everything an object that has In either-case, I would actually recommend re-writing the library with TypeScript, as it takes care of all these corner cases (and since this is just an importing library, it should be relatively easy). I basically did that as a temporary solution for some other stuff I am working on, and although this approach works well for my intended environments (for example, you can replace |
The first example from Try it online section - Observe Events doesn't seem to work:
alas, I don't know how to fix this.
Thanks!
The text was updated successfully, but these errors were encountered: