Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

[Error] 'import' and 'export' may appear only with 'sourceType: module' #42

Closed
elf-pavlik opened this issue Nov 13, 2016 · 2 comments
Closed

Comments

@elf-pavlik
Copy link

related issue eslint/eslint#5552

I also have https://atom.io/packages/linter-eslint enabled but it does not report this error, only polymer-ide

@TimvdLippe
Copy link
Contributor

Where are you experiencing this error? The sourcecode of polymer-ide itself is linted by tslint instead.

@rictic
Copy link
Contributor

rictic commented Nov 13, 2016

We currently try to parse all javascript as scripts rather than as modules. This is totally a bug and we should do something smarter. The canonical bug for this issue is: https://github.com/Polymer/polymer-editor-service/issues/12

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

No branches or pull requests

3 participants