-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.4.3.x] ecmascript >= 0.6.2 breaks bable-plugin-tcomb #8422
Comments
Realistically, Meteor 1.4.2.7 should not be used with any version of Have you tried using Meteor 1.4.3.1 with |
Hi @abernix, Thanks for the reply. I've tried It looks like being able to run the |
Thanks for the easy reproduction repo. Much appreciated. This is most likely because of meteor/babel@c8815d2. Unfortunately, changing the run order is not possible (and this change was made for good reasons) so you'll have to stick with Meteor |
I don't really know enough about Meteor's use of Babel or Babel's itself. My guess is that I could fork the plugin and replace the parts where it inserts import statements with something that works with reify. |
I'm having a different babel error, but I'm trying to use |
@billyvg I had that problem. You need to prefix the version with an |
Im having the same issue.
The error I am getting is:
Versions File:
Release:
Am I missing something? |
The most important change in this version is that the Reify compiler is now just another Babel plugin, so it's possible for other Babel presets and plugins to run before it. Fixes #8399. Fixes #8422. Fixes meteor/babel#13.
This should be fixed if you run |
Edit: Just read related issues attempting after a reset. Hi Ben. Thanks for the reply. Sadly simply running |
@dj-foxxy Maybe try running |
@abernix doesn't appear to help
|
@dj-foxxy Sorry, can you try |
Thanks for the reply @abernix. Using beta.4 does translate the import statements as expected. However, nothing is actually exported from the module:
|
@dj-foxxy What happens if you explicitly export |
|
I can't reopen the issue because I don't have sufficient privileges but this issues is still not fixed. The export code is not generated as is used to be. |
@dj-foxxy Can you try again with Meteor 1.4.4-rc.5?
|
Hi @abernix, thanks for getting back to me.
But, I get another, probably unrelated error:
Also, 1.5-beta.13 works without a hitch. |
Are you trying to use the (Meteor 1.5-only) |
Yer sorry. I tested 1.5 before 1.4.4 and forgot to do a |
Dynamic-imports reappear each time I run the project. It doesn't mater how many times I delete the folder. Anything I can do to solve this? |
Example repo
The
babel-plugin-tcomb
Babel plugin does not function correctly with Meteorcore package
ecmascript
after version0.6.1
.We use
flow
,tcomb
, andbabel-plugin-tcomb
for static and runtimetype-checking, respectively. In this example project, the
echo
functionin
main.js
should only be passedfoo1
orfoo2
, as described byFooType
in
FooType.js
. The second call toecho
passes an illegal argument,bar1
and we expect a
tcomb
generatedTypeError
.Details
In this example project, the
ecmascript
packages is pinned to0.6.1
. Underthis version, the following code is generated for the
FooType.js
module.This code correctly exports
tcomb
's type checker forFooType
and the misuseof the
echo
function inmain.js
is correctly detected:Updating the
ecmascript
package to version0.6.2
creates the following code:Which causes a syntax error:
Adding
babel-plugin-transform-es2015-modules-commonjs
doesn't help:FooType
is not exported:Question
Is there a fix for this issue or are we stuck with
ecmascript@=0.6.1
(andtherefore release
1.4.2.7
)?Thanks,
Peter.
The text was updated successfully, but these errors were encountered: