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

Illegal import declaration #2

Open
JonathanRys-ATC opened this issue Sep 6, 2017 · 1 comment
Open

Illegal import declaration #2

JonathanRys-ATC opened this issue Sep 6, 2017 · 1 comment

Comments

@JonathanRys-ATC
Copy link

I have the following options set

{
    "plugins": ["jsdoc-jsx"],
    "jsx": {
        "extensions": ["js", "jsx"],
        "react": true,
        "harmony": true,
        "nonStrictEs6module": true
    }
}

I'm running this at the command line

jsdoc .\src\App.jsx -c conf.json

And I get Parse Error: Line 11: Illegal import declaration

This is line 11 in App.jsx:

import React, { Component } from "react";
@turnerhayes
Copy link

turnerhayes commented Sep 11, 2017

Same problem here.

{
"tags": {
	"allowUnknownTags": true
},
"source": {
	"includePattern": ".+\\.js(doc|x)?$",
	"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [
	"jsdoc-jsx"
],
"templates": {
	"cleverLinks": false,
	"monospaceLinks": false,
	"default": {
		"outputSourceFiles": true
	}
}
}

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

No branches or pull requests

2 participants