-
Notifications
You must be signed in to change notification settings - Fork 51
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
Get an empty object when using ES6 import #15
Comments
workly is essentially two functions expose and proxy, so depending on which ones you want to use you import those. import {proxy, expose} from 'workly' I should update the docs with this |
Thanks for your feedback. Also tried that and it gave me |
Ok i'll take a look later today. Probably something I overlooked. |
Thanks :) Using Webpack (actually Vue.js but it uses Webpack). |
I'm so sorry. I never got back to you on this. |
Actually no, but the problem is likely not gone ;) |
Thanks. It has something to do with es6 modules in a Webpack that is not configured for that. I have not used web pack much but will try setting up a Vue project with it |
I am experiencing this, currently. I created a CodeSandbox to demonstrate the issue. :) |
Same issue here, getting empty object when doing import { proxy, expose } from 'workly';
[ERROR] Cannot find name 'proxy'. Did you mean 'Proxy'?
Cannot find name 'expose'. Checked source code and generated d.ts file, both |
UPDATE: |
That's a work around. |
I was using workerize but came to workly because of the clean and simple interface. Will check again though |
Maybe I miss something but when I do:
the
workly
object is empty.The text was updated successfully, but these errors were encountered: