Skip to content

Commit 1666ac5

Browse files
committed
Fix listenBeforeLeavingRoute error
I had to add 'react/addons' as external due to a `Cannot read property 'listenBeforeLeavingRoute' of undefined` error. Got it from here remix-run/react-router#1093 (comment)
1 parent 767f911 commit 1666ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/13-server-rendering/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737

3838
// keep node_module paths out of the bundle
3939
externals: fs.readdirSync(path.resolve(__dirname, 'node_modules')).concat([
40-
'react-dom/server'
40+
'react-dom/server', 'react/addons',
4141
]).reduce(function (ext, mod) {
4242
ext[mod] = 'commonjs ' + mod
4343
return ext

0 commit comments

Comments
 (0)