Skip to content

Bug report: NodeAPI npm version 9.0.2, nodejs 10.13.0 "import chef" -> SyntaxError: Unexpected identifier #605

@fletcher2

Description

@fletcher2

Describe the bug

node <<<'import chef from "cyberchef";'
[stdin]:1
import chef from "cyberchef";
       ^^^^

SyntaxError: Unexpected identifier
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Object.<anonymous> ([stdin]-wrapper:6:22)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at evalScript (internal/bootstrap/node.js:582:27)
    at ReadStream.<anonymous> (internal/bootstrap/node.js:325:15)
    at ReadStream.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
node -v
v10.13.0
npm info cyberchef

cyberchef@9.0.2 | Apache-2.0 | deps: 66 | versions: 202
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions