Replies: 1 comment 1 reply
-
I don't think we can do much without knowing what token is unexpected. Even in a minified file you should be able to see the bad keyword or character. Is it possible that aliasify doesn't support optional chaining or nullish coalescing assignment? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use babelify+browserify+aliasify in my project, and also import lit. but I encountered some errors. I will provide some context here.
the entry.js file:
import { html } from 'lit-element';
the gulp build script:
the error I encountered:
As
lit-element.js
is a compressed file, so I can't find out what unexpected token here mentioned is.npm versions:
babelify: 10.0.0
aliasify: 2.1.0
@babel/core: 7.9.0
Can anyone help me how to resolve this error?
Beta Was this translation helpful? Give feedback.
All reactions