Closed FezVrasta closed 8 years ago
That's because react-boilerplate
uses the CommonsChunkPlugin
. Use the injectTags
option of the ReactPlugin
to inject <script src="common.js.js"></script>
(yeah, that .js.js
is a bug…) and it should work!
Like this?
new CarteBlanche({
componentRoot: './app/components',
plugins: [
new ReactPlugin({ injectTags: ['<script src="common.js.js"></script>'] }),
],
}),
If so, it still doesn't work... actually it doesn't add the script tag.
I just noticed that ReactPlugin injects the tag in the iframes, the problem is that the error is thrown by the Carte Blanche bundle, not by the components.
The page just doesn't load at all.
Ah, damn, that's a problem! Will look into it, we might have to add an injectTags
options to the main CarteBlanche plugin.
I'm getting this error as well. What would be the best way to approach this issue?
Not yet fixed, we're on it!
Awesome - thanks. FYI I'm using: https://github.com/rangle/react-redux-starter
Done with v0.2! :tada:
Now onwards to try with react-boilerplate
again…
Are you going to release 0.2 anytime soon? Thanks
It's released! I wouldn't have closed this issue otherwise. :grin:
It doesn't work with react-boilerplate
, still investigating about that but we're almost there, it's rendering already!
Oh sorry I thought you would have added a release on GitHub.
Ah, forgot to push the tag, my bad! Thanks for reminding me, it'll be right there…
EDIT: The release is now on Github too, thanks again!
Is it work with react-boilerplate now?
I'm using
react-boilerplate
, when I addcarte-blanche
and I visit/carte-blanche
I getHow can I fix it?