-
Notifications
You must be signed in to change notification settings - Fork 74
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
Uncaught TypeError: Cannot read property 'createSESInThisRealm' of undefined #163
Comments
Hi Steve, I'm trying to reproduce the issue here, but haven't been able to so far. I have ses@0.4.0, typescript 3, and webpack 4 installed, and then I do Thanks again for filing the issue! |
Of course! So I tried this in a range of setups and get errors every time - here are some examples Codesandbox example with parcel and babel yields I also tried chagning It seems that the project from it's default imports is not prebuilt in a way that is compatible with a lot of build tools, and the one prebuilt example in dist is only for browsers and cannot be used with modern module loaders since it uses a global variable. It seems to me this project just needs a CJS/ESM distribution build, e.g. with rollup, and ideally the package.json main, module, and browser fields would point to the prebuilt dist versions so module bundlers will load the correct one. I just peeked that you do use rollup but only generate just an If you just add a couple configs like this example I think all of your problems should be solved. I've done this for all of the modules in builder and it works well, i'll send a PR shortly for this project that'll do the same |
Create PR over here |
I'm very excited about this project and eager to use it, but I get an error every time:
I am using ses@0.4.0 with typescript 3 and webpack 4
My code is:
And when running anything, e.g.
I get:
I am running this in Chrome 72.0.3626.96
The text was updated successfully, but these errors were encountered: