Comments (6)
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.
@telmaantunes Thanks a lot. Was facing this issue for one whole day
from broccoli-persistent-filter.
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.
solution?
from broccoli-persistent-filter.
@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.
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)
- Version 10 of node.js has been released
- Changelog is outdated HOT 1
- Add typescript types
- broccoli-persistent-filter - childprocess fail HOT 13
- An in-range update of mocha is breaking the build 🚨 HOT 5
- Prevent inconsistent ember-cli builds with different extensions HOT 7
- cacheKeyProcessString does not invalidate across rebuilds. HOT 1
- Worker is terminated HOT 4
- Rejecting / Excluding Files | broccoli-funnel HOT 5
- Use glob expression as file dependency HOT 1
- Upgrade promise-map-series to async/await version once ready
- move to broccoli org? HOT 3
- `dependencyInvalidation` and `concurrency` should not be required HOT 2
- Typescript issues with 3.0 release. HOT 3
- Node 10 doesn't support recursive directory operations. HOT 3
- Build Error (OneShot) HOT 1
- Switch to GH Actions
- broccoli-persistent-filter:babel random error in windows HOT 2
- "unexpected end of file" can persist from corrupted build and there is no discoverable way to force rebuild
- Bring back Windows CI...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broccoli-persistent-filter.