-
Notifications
You must be signed in to change notification settings - Fork 4
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
Package presence causes SyntaxError
in CI
#4
Comments
We need to know whats at I think you should be able to replicate locally with |
Cool — I tried doing a build locally yesterday and loaded up that file, but there wasn’t anything fishy on that line. I’ll try that locally with the |
Sure enough, I ran this: CI=true yarn build --environment test to get the file in a location where I could open it. Here are the lines directly above/below it
The line where I'm not sure what source file that is from -- the module above it (where the |
Seems like this is an odd interaction between us using /cc @pzuraq |
I took this to mean adding the following to the add-on's "ember-cli-build": {
includeExternalHelpers: false
} Running For the record, hard-coding to |
Ya, thats what I was thinking. Hmph. |
I'm experiencing this issue too when trying to do a production build with import _taggedTemplateLiteral from"@babel/runtime/helpers/esm/taggedTemplateLiteral"
import _possibleConstructorReturn from"@babel/runtime/helpers/esm/possibleConstructorReturn"
import _getPrototypeOf from"@babel/runtime/helpers/esm/getPrototypeOf"
import _get from"@babel/runtime/helpers/esm/get"
import _inherits from"@babel/runtime/helpers/esm/inherits"
import _classCallCheck from"@babel/runtime/helpers/esm/classCallCheck"
import _createClass from"@babel/runtime/helpers/esm/createClass" Not sure how to debug this further! |
I have an idea that I'd like to try, but I'm not sure exactly how to reproduce the issue. Does anyone have repro steps handy? |
I've put together a barebones reproduction at willviles/ember-modifier-manager-polyfill-bug. It's got Prember installed so it throws an error when the production build's One thing I've noticed, uninstalling ONE of Having both installed at the same time causes the |
Yep, thats along the lines of my hypothesis. Thank you for the repro! |
OK, awesome, I've tracked this down and filed a PR to fix the issue over in emberjs/ember-cli-babel#267. |
OK, released v1.0.2 which bumps the minimum ember-cli-babel version to fix the underlying issue. @willviles - I confirmed in your demo repo that just bumping ember-modifier-manager-polyfill to 1.0.2 fixes. |
Awesome, thanks for the reproduction @willviles and for hunting down the fix @rwjblue ! |
I am trying to include this package as a dependency of an addon that I'm working on, but it's throwing off my build in CI.
Locally, the tests in this branch pass at this commit:
alexlafroscia/ember-rx@e92ea73
However, in CI, I get a
SyntaxError
before Chrome can actually run any of my tests.https://travis-ci.com/alexlafroscia/ember-rx/jobs/173939015#L544
I added an additional commit to the one that works locally, which removes the polyfill; no more
SyntaxError
(the build fails, though, because I need the polyfill to run my tests!)https://travis-ci.com/alexlafroscia/ember-rx/jobs/173939684
Any idea what's going on here?
The text was updated successfully, but these errors were encountered: