Skip to content

SyntaxError: Unexpected token 'export' when using import on javascript files #23

Description

@animexxx

Hello everybody,
When i just put this code to assets/js/scripts.js
import moment from 'moment-timezone';
and try to build, it show the error
Uncaught SyntaxError: Unexpected token 'export' (at main-42e06ae1.js?ver=6.6.1:41:35449)
it work on the development mode, idk why? anyone have fix?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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