Skip to content

global doesn't apply to import #11

@desm

Description

@desm

Hi, I get the following error when trying to run the sample LiteScript blog-example-dns.lite.md:

$ git clone git@github.com:luciotato/LiteScript.git
$ cd LiteScript/doc
$ lite -es6 blog-example-dns.lite.md
LiteScript-to-js v0.8.9 Build Date Thu Oct 23 2014 07:54:38 GMT-0300 (ART)
compiler options: {"verboseLevel":1,"warningLevel":1,"comments":1,"target":"js","outDir":"generated/js","perf":0,"generateSourceMap":true,"defines":[],"includeDirs":[],"projectDir":".","mainModuleName":"blog-example-dns.lite.md","storeMessages":false,"now":"2015-01-11T06:15:13.193Z","es6":true}
cwd: /data/projects/LiteScript/doc
compile : blog-example-dns.lite.md
Project Dir: /data/projects/LiteScript/doc
Main Module: blog-example-dns
Out Dir: /data/projects/LiteScript/doc/generated/js
preprocessor #defined [ 'ENV_JS', 'ENV_NODE', 'TARGET_JS' ]
Compiling blog-example-dns
 ERROR: /data/projects/LiteScript/doc/blog-example-dns.lite.md:7:5. 'global' can only apply to declare|class|namespace|function|var not to 'import' 
 /data/projects/LiteScript/doc/blog-example-dns.lite.md:7:5. 'global' can only apply to declare|class|namespace|function|var not to 'import' 

Commit hash: '5767d7'
LiteScript version: LiteScript-to-js v0.8.9 Build Date Thu Oct 23 2014 07:54:38 GMT-0300 (ART)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions