Skip to content

import and babel-runtime/helpers/classCallCheck not found #16

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

Closed
lucasriondel opened this issue Nov 16, 2016 · 2 comments
Closed

import and babel-runtime/helpers/classCallCheck not found #16

lucasriondel opened this issue Nov 16, 2016 · 2 comments
Assignees
Labels

Comments

@lucasriondel
Copy link

shouldn't you use require to import the script ?
when i try to run it, it tells me

Error: Cannot find module 'babel-runtime/helpers/classCallCheck'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/lucas/dev/fivegoal_reservationsapi/node_modules/sql-formatter/lib/languages/N1qlFormatter.js:5:24)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/lucas/dev/fivegoal_reservationsapi/node_modules/sql-formatter/lib/sqlFormatter.js:5:22)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
@nene
Copy link
Collaborator

nene commented Nov 16, 2016

Looks like we're missing babel-runtime in our dependencies. I thought that by using babel-plugin-transform-runtime we don't need to add babel-runtime itself as dependency, but we do. From the docs:

Make sure you include babel-runtime as a dependency.

@ukupat ukupat self-assigned this Nov 16, 2016
@ukupat ukupat added the bug label Nov 16, 2016
@ukupat
Copy link
Contributor

ukupat commented Nov 16, 2016

Fixed in v1.1.1 https://github.com/zeroturnaround/sql-formatter/releases/tag/v1.1.1 @lucasriondel

Thanks for reporting!

@ukupat ukupat closed this as completed Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants