Open perbergland opened 1 month ago
After cloning the repo into packages, I can no longer reproduce the error.
I suspect that this is because when building for Meteor 3 to ensure that it is compatible with both versions, the compiled code will not be processed by reify to have await calls converted to Promise.await.
One possible solution that is hard to test locally would be to create a Promise instance manually instead of using the await operator, but I’m not sure - I would ask zodern for advise…
This might work, but I have no way of testing it… It will invoke the "safe" Promise.await when executing in meteor 2 and use native await in meteor 3
const result = Promise.await ? Promise.await(getResult()) : await getResult()
Bug report
meteor
version: 2.16leonardoventurini:scss
version: 1.1.1I get this stack trace in an error during build:
It might indicate that the compileOneFileLater method returns a promise that isn’t wrapped in Meteor.bindEnvironment.