Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update import statement in Class example given in Sweet Tutorial #701

Closed
manisuec opened this issue May 3, 2017 · 1 comment
Closed

Comments

@manisuec
Copy link

manisuec commented May 3, 2017

In my system,

npm ls --depth=1
/xxxx/xxxx/work/sweetjs
-- sweet.js@3.0.5 +-- @sweet-js/cli@3.0.4 -- @sweet-js/core@3.0.4

I was trying the class example given at http://www.sweetjs.org/doc/1.0/tutorial.html#_sweet_class
I was getting below error

Error: Cannot find module 'sweet.js/helpers' from '/xxxx/xxxxx/work/sweetjs'

Updating the import command as below made this example work
import { unwrap, isIdentifier } from 'sweet-core/helpers.js' for syntax;

@disnet
Copy link
Member

disnet commented May 4, 2017

Sorry, more fallout from the re-org. Should have a fix at sweet-js/sweet-shell#2.

Thanks for taking the time to report!

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

No branches or pull requests

2 participants