-
Notifications
You must be signed in to change notification settings - Fork 211
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
Import not working #751
Comments
I have the same problem with the
The output is:
|
By the way, that example I've just posted doesn't work in the online editor either. |
It's still a problem. File: foo.js 'lang sweet.js'
import { unwrap } from '@sweet-js/helpers' for syntax;
export syntax foo = (ctx) => {
console.log(`unwrap = ${typeof(unwrap)}`);
return #`let x;`; File index.js import { foo } from './foo.js';
foo; console -> unwrap = undefined |
Did they find a solution to this? I'm having the exact same problem :/ |
The fix is to install the sweet helpers package inside your project
|
Installing the helpers locally rather than globally does seem to do the trick. |
I can use sweet.js fine for most use cases, but any time I try to use imports from standard libraries, it fails to work. Here's an example from the documentation:
the error I get when I try to complie:
The text was updated successfully, but these errors were encountered: