Closed RobbieTheWagner closed 6 years ago
@rwwagner90 interesting, looks like the issue may be coming from: https://github.com/broccolijs/broccoli/blob/631440d51c2315e9d348ff80bc4ce39a4ccf61df/lib/builder.js#L400
@rwwagner90 do you have a reproduction? That was help us understand exactly what is going sideways.
cc @oligriffiths this may be related to the heimdall compat stuff in https://github.com/broccolijs/broccoli/blob/631440d51c2315e9d348ff80bc4ce39a4ccf61df/lib/builder.js#L400, mind taking a look?
@stefanpenner yeah, if you pull https://github.com/shipshapecode/shipshape.io/tree/broken-production run yarn
then do ember build -e production
you can see the failures.
@rwwagner90 Does commenting out https://github.com/broccolijs/broccoli/blob/631440d51c2315e9d348ff80bc4ce39a4ccf61df/lib/builder.js#L429-L430 fix the issue? Let's see if we can eliminate the cause.
@oligriffiths what has the dependency on this code? I'm happy to comment it out, but I'm not sure what has the direct broccoli dep, and where to yarn link
it to test.
ember-cli has the direct dependency on broccoli. You should be fine to comment it out and see if the issue persists.
@oligriffiths yes, commenting that out seems to fix things.
Hmm, ok, i will do some digging
Feel free to ping me on discord or let me know of anything I can do to help.
Digging into this further, it's entering an endless loop, will report more when I know more.
I'm having the same errors. But I also get them without the -e production
flag.
@rwwagner90 Are you using an engine? I removed our engines from the package.json
and now it works.
https://github.com/ember-cli/ember-cli/issues/8118#issuecomment-430240755
@rwwagner90 Does commenting out broccolijs/broccoli:lib/builder.js@
631440d
#L429-L430 fix the issue? Let's see if we can eliminate the cause.
@oligriffiths I can also confirm that uncommenting these two lines fixes the problem for us.
Yeah I am investigating a recursive issue. It’s proving to be difficult. Will post updates as I find them
@krisselden thanks for that PR. I took the liberty to make it simpler whilst keeping the recursion as from what I can tell, the main crux of the issue was recursing for nodes that have already been processed.
https://github.com/broccolijs/broccoli/pull/380/
EDIT: closed that PR as whilst is fixes the problem in this issue, it doesn't fix the issue of graphs that exceed the stack. Your PR looks good @krisselden thanks for the work
Figured I should mention that I also just ran into this after trying to add ember-service-worker and friends. I got the error when running ember serve
(not production build).
We do have an engine but removing it did not fix the issue.
Glad to see this is closed! Should things work now or do deps need to be updated to ones with the fix first in ember-cli?
@rwwagner90 Upgrade the transitive broccoli
dependency to 2.0.1
. Then it works. :)
I did this by forcing a yarn resolution for 2.0.1
, then running yarn
and then removing the resolution again. ember-cli work like a charm again. ❤️
Hi I am getting the same error in angular code while running the 'npm run pro'
@pramodhk this is Ember specific, so this likely won't help you with any Angular issues.
I am getting errors like this on 3.5.0-beta.2 and master branch when I run
ember build -e production
:Output from
ember version --verbose && npm --version && yarn --version
: