Prepack: ES6 module

Created on 3 May 2019  路  2Comments  路  Source: facebook/prepack

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.
ES6

All 2 comments

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...

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matheusml picture matheusml  路  8Comments

jtenner picture jtenner  路  5Comments

NTillmann picture NTillmann  路  3Comments

aligoren picture aligoren  路  6Comments

MichaelBlume picture MichaelBlume  路  6Comments