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

ES6 module #2629

Open
zaoqi opened this issue May 3, 2019 · 2 comments
Open

ES6 module #2629

zaoqi opened this issue May 3, 2019 · 2 comments
Labels

Comments

@zaoqi
Copy link

zaoqi commented May 3, 2019

In input file lang.js(64:1) FatalError PP1004: Syntax error: 'import' and 'export' may appear only with 'sourceType: "module"' (64:0) (https://github.com/facebook/prepack/wiki/PP1004)
    
Prepack failed, reporting 1 fatal error.
@NTillmann NTillmann added the ES6 label Aug 19, 2019
@Yegorich555
Copy link

Why is it issue? Your file should be converted from ES6 to NodeJs module and only after that prepacked. It can be done with webpack for example...

@adeelavancerasolution
Copy link

my entire backend is in module form so should I use webpack to convert it to commonJs? that would most likely be impossinble.

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

No branches or pull requests

4 participants