Giter Site home page Giter Site logo

Comments (6)

acgrama avatar acgrama commented on June 29, 2024 1

Not sure if I'm doing it right, but didn't solve my issue. I've added the transform-object-rest-spread plugin as suggested by the readme:

  const app = new EmberApp(defaults, {
    babel: {
      plugins: ['transform-object-rest-spread'],
    },
  });

Now I am getting this error:

The Broccoli Plugin: [BroccoliMergeTrees: TreeMerger (appTestTrees)] failed with:
TypeError: The plugin "transform-object-rest-spread" didn't export a Plugin instance
    at PluginManager.validate (/usr/local/src/dev/ui/node_modules/babel-core/lib/transformation/file/plugin-manager.js:164:13)
    at PluginManager.add (/usr/local/src/dev/ui/node_modules/babel-core/lib/transformation/file/plugin-manager.js:213:10)
    at File.buildTransformers (/usr/local/src/dev/ui/node_modules/babel-core/lib/transformation/file/index.js:237:21)
    at new File (/usr/local/src/dev/ui/node_modules/babel-core/lib/transformation/file/index.js:139:10)
    at Pipeline.transform (/usr/local/src/dev/ui/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
    at /usr/local/src/dev/ui/node_modules/broccoli-babel-transpiler/lib/parallel-api.js:102:26
    at initializePromise (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:567:5)
    at new Promise (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:1039:33)
    at Object.transformString (/usr/local/src/dev/ui/node_modules/broccoli-babel-transpiler/lib/parallel-api.js:101:12)
    at Babel.transform (/usr/local/src/dev/ui/node_modules/broccoli-babel-transpiler/index.js:110:22)
    at Babel.processString (/usr/local/src/dev/ui/node_modules/broccoli-babel-transpiler/index.js:210:15)
    at Promise.then.result.output (/usr/local/src/dev/ui/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:41:23)
    at initializePromise (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:567:5)
    at new Promise (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:1039:33)
    at /usr/local/src/dev/ui/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:40:18
    at tryCatch (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:538:13)
    at publish (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:508:7)
    at flush (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:2415:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

The broccoli plugin was instantiated at: 
    at BroccoliMergeTrees.Plugin (/usr/local/src/dev/ui/node_modules/broccoli-plugin/index.js:7:31)
    at new BroccoliMergeTrees (/usr/local/src/dev/ui/node_modules/broccoli-merge-trees/index.js:42:10)
    at BroccoliMergeTrees (/usr/local/src/dev/ui/node_modules/broccoli-merge-trees/index.js:36:53)
    at mergeTrees (/usr/local/src/dev/ui/node_modules/ember-cli/lib/broccoli/merge-trees.js:85:18)
    at EmberApp.appTests (/usr/local/src/dev/ui/node_modules/ember-cli/lib/broccoli/ember-app.js:1154:18)
    at EmberApp.test (/usr/local/src/dev/ui/node_modules/ember-cli/lib/broccoli/ember-app.js:1133:26)
    at EmberApp.toArray (/usr/local/src/dev/ui/node_modules/ember-cli/lib/broccoli/ember-app.js:1680:61)
    at EmberApp.toTree (/usr/local/src/dev/ui/node_modules/ember-cli/lib/broccoli/ember-app.js:1695:30)
    at module.exports (/usr/local/src/dev/ui/ember-cli-build.js:29:14)
    at Builder.setupBroccoliBuilder (/usr/local/src/dev/ui/node_modules/ember-cli/lib/models/builder.js:54:19)
    at new Builder (/usr/local/src/dev/ui/node_modules/ember-cli/lib/models/builder.js:33:10)
    at ServeTask.run (/usr/local/src/dev/ui/node_modules/ember-cli/lib/tasks/serve.js:15:19)
    at Win.checkIfSymlinksNeedToBeEnabled.then (/usr/local/src/dev/ui/node_modules/ember-cli/lib/commands/serve.js:78:29)
    at tryCatch (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:538:13)
    at /usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:606:14
    at flush (/usr/local/src/dev/ui/node_modules/rsvp/dist/rsvp.js:2415:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

From the few results I can google, this seems to be some version incompatibility issue, but I can't get any clear results.
Do you need any other information from me, like installed versions, etc.?

from broccoli-persistent-filter.

yashhy avatar yashhy commented on June 29, 2024 1

@telmaantunes Thanks a lot. Was facing this issue for one whole day 🗡

from broccoli-persistent-filter.

rwjblue avatar rwjblue commented on June 29, 2024

The README of ember-cli-babel specifically describes how to add the rest/spread support with ember-cli-babel@6. Please take a look over there, and let me know if that doesn't resolve the issue.

I'm going to close this issue (we can open a more specific one in ember-cli-babel repo if needed).

from broccoli-persistent-filter.

telmaantunes avatar telmaantunes commented on June 29, 2024

solution?

from broccoli-persistent-filter.

acgrama avatar acgrama commented on June 29, 2024

@telmaantunes The only solution was to postpone upgrading.... :-(
Maybe there is a way to solve it, but back then I didn't have a week to spend for fixing whatever compatibility bug this was.

from broccoli-persistent-filter.

telmaantunes avatar telmaantunes commented on June 29, 2024

I found a solution. If you're using ember-cli < 2.13 write "babel6" instead of "babel".

babel6: {
      plugins: ['transform-object-rest-spread'],
},

from broccoli-persistent-filter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.