-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EvalError: tslib_1.__importStar is not a function #1209
Comments
When it works:
When it fails:
|
@layershifter I'm not up to speed with how linaria is caching transformations but it does look like the it goes through this code path https://github.com/callstack/linaria/blob/master/packages/babel/src/module.ts#L414-L420 (a partial cache match?). @Anber in this scenario, shouldn't it either...
What'd be the logic for not doing either? Apologies if I'm misunderstanding there! I've tried it locally and seems both alternatives stop crashing this example |
@juanferreras, yep, you are right. The problem was that there was no code being executed in module.ts. This occurred when the file was not processed in previous stages, which happened for two reasons:
I've fixed the problem with |
Environment
@linaria/babel-preset@4.4.1
Description
I checked the latest version on one of our projects and build there fails
tslib_1.__importStar
. In logs I noticed following:Reproducible Demo
Note: I tried to build a smaller repro, but failed 🙃
yarn
node index.js
The text was updated successfully, but these errors were encountered: