简体   繁体   中英

Ember addon and processing files

I have successfully managed to render a React component inside of ember. You can see the relevant code here .

The basics being adding an addon, that uses the preprocessTree hook, to use broccoli-react to parse the jsx files as per here . And a ReactComponent (which is an ember component) to wrap any react component.

This works well in ember cli 2.11.0 and 2.12.0, but in 2.13.0 and 2.14.0 something has changed and I can't figure out what.

I have narrowed the error down to this line in ember-resolver, for some reason this._moduleRegistry in the newer versions don't have the react component but the older versions do...

Any ideas?

I uninstalled everything node. And started matching package versions 1 for 1 from the newer app into the older one, and it all works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM