-
Notifications
You must be signed in to change notification settings - Fork 361
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
Issues compiling when migrating from 0.11 to 0.12 #659
Comments
Are you able to try the My guess is the same as the yours, that this is related to the async plugin. I believe it is currently possible to work around that by adding a module.exports = {
presets: [
['env', {
loose: true
}]
]
} |
Hey, My resolutions seemed to break using I tried the mentioned module.exports = {
presets: [
[
'@babel/preset-env',
{
exclude: ['transform-regenerator'],
},
],
],
}; But no luck... EDIT am I correct in understanding this is because |
Yes, the move from Bublé is the underlying cause here. Specifically, it is caused by this issue: rpetrich/babel-plugin-transform-async-to-promises#49.
Can you try a module.exports = {
presets: [
['env', {
loose: true,
bugfixes: true,
targets: {
chrome: 72
}
}]
]
} |
That worked perfectly, thank you! |
Heya,
I have a project that is using Capacitor and while I can compile it in version
0.11.0
it falls over in0.12.0
, given that it does work in0.11.0
and not0.12.0
I am guessing this is a bundling issue but please let me know if I need to redirect my query to capacitor.I have also tried using
microbundle@next
to bundle and I am running into the same issue.A shimmed down version of my capacitor code is as follows:
And when it successfully logs:
And then the promise it is meant to resolve, resolves as
undefined
before logging:NOTE I am running in a web environment and expect this code to fail,
platform
does return"web"
when logged.The way this promise is called is as follows:
And basically what happens is the
'Result in device provider appears to be ``undefined``, moving to next resolver
message is logged infinitely (40,000+ then browser freezes).Now I am aware this is a
for await
loop and looking at previous commits I can see tweaking has been made here, additionally Capacitor is written in Typescript which may or may not have an impact.I tried to figure out what had changed between
0.11.0
and0.12.0
but couldn't quite figure it out and was hoping it may be obvious to someone more involved with the project.The text was updated successfully, but these errors were encountered: