cibernox / ember-basic-dropdown

The basic dropdown you ember app needs
http://www.ember-basic-dropdown.com
Other
156 stars 183 forks source link

`throwUnlessParallelizable` and was unable to parallelize a plugin #547

Closed jmonster closed 2 days ago

jmonster commented 4 years ago

I think this is a silent but common problem across the ember ecosystem, but this particular repo is the one one currently blocking my project from building in parallel:

THROW_UNLESS_PARALLELIZABLE=1 yarn start
$ ember serve
[broccoli-persistent-filter:Babel > [Babel: ember-basic-dropdown]: Babel: ember-basic-dropdown] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin.
plugins:
1: name: unknown, location: unknown
veelci commented 2 years ago

I'm running into the same problem using both v2.0.15 and v3.0.21 of ember-basic-dropdown in separate projects.

cibernox commented 2 years ago

I'm not very familiar with what makes an addon parallelizable. What can be done on this addon to make it parallel?

teakap commented 2 years ago

@cibernox I'm experiencing the same issue. I think this is what you want to make it parallelizable:

https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation

teakap commented 2 years ago

A bit more info about the warnings, on a fresh ember app.

After ember-power-select installation.

testing_ember_power_select

After ember-basic-dropdown installation.

testing_ember_basic_dropdown
sly7-7 commented 2 years ago

@teakap I don't know if it's related, but I just encountered this error after upgrading ember-data to 4.6. I realized that an other addon was using ember-data on 3.28. having the two pointing to 4.6, nuking node_modules, and yarn.lock file, makes the build to work again.

@cibernox I also found https://github.com/typed-ember/ember-cli-typescript/pull/351/files where it seems to workaround the problem (but to be honest, I don't understand what that mean).

mwhitworth commented 1 year ago

From a brief investigation (console.log calls in broccoli-babel-transpiler), I think the ember-maybe-in-element dependency is the culprit - see https://github.com/DockYard/ember-maybe-in-element/issues/52 and the open PR https://github.com/DockYard/ember-maybe-in-element/pull/54 to address this issue

mwhitworth commented 1 year ago

I think this can be closed, since the issue lies in another project (which has already addressed the issue)