On the 1.3 version of the book, on page 69, section: Using RxJS as an Analytics Bus we create an analytics.js module in the home app.
Then we expose it via:
exposes: {
"./analytics": "./src/analytics",
},
in the webpack.config.js of the home app.
Then it is suggested that we can import it in the home app via:
import analyticsBus from "home/analytics"; to ensure that both the App
component and the Header component get exactly the same analytics subject.
This however does not seem to work, giving the error:
On the
1.3
version of the book, on page 69, section: Using RxJS as an Analytics Bus we create ananalytics.js
module in thehome
app.Then we expose it via:
in the
webpack.config.js
of thehome
app.Then it is suggested that we can import it in the home app via:
import analyticsBus from "home/analytics";
to ensure that both the App component and the Header component get exactly the same analytics subject.This however does not seem to work, giving the error: