Skip to content
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

Unexpected token import #14

Closed
bradhanebury opened this issue Oct 24, 2016 · 2 comments
Closed

Unexpected token import #14

bradhanebury opened this issue Oct 24, 2016 · 2 comments
Assignees
Labels

Comments

@bradhanebury
Copy link

Example index.js

'use strict';
var RxAmqpLib = require('rx-amqplib');

Output:

node index.js
/Documents/www/node_modules/rx-amqplib/src/RxAmqpLib.ts:2
import * as Rx from 'rx';
^^^^^^
SyntaxError: Unexpected token import
    at Object.exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:513:28)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/www/index.js:6:17)
    at Module._compile (module.js:541:32)

Dependencies

  "dependencies": {
    "rx": "~4.1.0",
    "rx-amqplib": "0.1.4"
  }
@SkippyZA SkippyZA added the bug label Oct 24, 2016
@SkippyZA SkippyZA self-assigned this Oct 24, 2016
@SkippyZA
Copy link
Owner

Thanks for bringing this to my attention. I shall take a look at it shortly.

@SkippyZA
Copy link
Owner

I have resolved the issue. Try using 0.1.6 now.

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

2 participants