Skip to content

Can't use ES6 import file #193

@galiolas

Description

@galiolas

Hey, I have an error when I try to use import test from './test' in my project.
It works with require('test.js') but my project is in ES6 so I would like to use it.

Error : Cannot use import outside a module.

How can I do it ?
Thanks

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