SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
dmnsgn opened this issue · 1 comments
dmnsgn commented
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
Solution:
Change the order of transforms, moving babelify
in the first position of the transform array in the package.json
:
"browserify": {
"transform": [
"babelify",
"aliasify",
"brfs"
]
},
kirylrb commented
devDependencies need "babelify": "^8.x.x"
also as well.