question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[API] Warning: The .read and .rebuild APIs will stop working in the next Broccoli version

See original GitHub issue

What

This issue is to help inform Broccoli & Ember-CLI users when they experience this error/warning and to help with the transition.

Why

This warning is presented when broccoli is used with a plugin that is implementing the deprecated .read/.rebuild API. This API has been deprecated for some time, and will be removed very shortly when we switch to using Broccoli 2.0 in Ember-CLI.

The warning is generated here: https://github.com/ember-cli/broccoli-builder/blob/0-18-x/lib/builder.js#L241-L246

Unfortunately, due to the warning not being presented until build time, the instantiation stack of the plugin is lost, giving few details and limited introspect-ability to the source of the offender.

If you encounter this error after installing a new ember addon, please report the error to the addon author, and ask them to update their addon (or its dependencies).

If you encounter this error after updating ember-cli on an existing project, chances are you or an addon is using an old version of the broccoli-plugin API. Please post your error along with all the ember-addons you are using, and is possible a link to your project repository.

A temporary work around for plugin authors is to use https://github.com/broccolijs/broccoli-read-compat however we STRONGLY encourage you to update your plugin to the latest https://github.com/broccolijs/broccoli-plugin API

Thanks, we hope this journey is smooth.

Deprecated

These packages are deprecated and showing warnings, if there is demand we will put forward fixes:

ef4/ember-browserify

Fixed

Addons/plugins already aware/fixed:

ef4/ember-browserify#130 simplabs/ember-simple-auth#1615 ember-template-lint/ember-cli-template-lint#345 mixonic/ember-cli-deprecation-workflow#52 buschtoens/broccoli-flatiron#3 ef4/ember-code-snippet#52 ef4/ember-auto-import#52

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
piotrpalekcommented, Sep 20, 2018

Hey it seems that ember-power-select-with-create also causes this issue for me because it relies on (a probably older version of) ember-native-dom-helpers which in turn has an older version of broccoli-templater.

For anyone having this issue, what helped me find out which addons cause this issue was to search in node_modules for broccoli-templater and look for which addons had the 1.x version.

1reaction
jrjohnsoncommented, Sep 10, 2018

Just wanted to add https://github.com/mixonic/ember-cli-deprecation-workflow/issues/52 to the list. It is the actual source of ember-template-lint/ember-cli-template-lint#345 according to https://github.com/ember-template-lint/ember-cli-template-lint/issues/345#issuecomment-419923817

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - [API] Warning: The .read and .rebuild APIs will stop ...
[API] Warning: The .read and .rebuild APIs will stop working in the next Broccoli version.
Read more >
sammy007/open-ethereum-pool - Gitter
Building[API] Warning: The .read and .rebuild APIs will stop working in the next Broccoli version [API] Warning: Use broccoli-plugin instead: ...
Read more >
[Help] Problem with Setup WebChain Pool. - Bitcoin Talk
[API] Warning: The .read and .rebuild APIs will stop working in the next Broccol i version [API] Warning: Use broccoli-plugin instead: ...
Read more >
How to fix Broccoli Builder ran into an error with `UglifyWriter ...
There are some code which is in vendor folder is using the latest ES6 syntax which was not transpiled using babel so ember-cli-uglify...
Read more >
broccoli-builder | Yarn - Package Manager
0.18.14. Bring back broccoli-plugin API usage for annotation string (fixed issue with 0.8.12...) 0.18.13. Temporary revert of leveraging newer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found