-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I'm getting the following errors:
react-speech.js?49ba:562 Uncaught TypeError: Cannot read property 'object' of undefined
at Object.eval (react-speech.js?49ba:562)
at __webpack_require__ (react-speech.js?49ba:30)
at Object.eval (react-speech.js?49ba:60)
at __webpack_require__ (react-speech.js?49ba:30)
at eval (react-speech.js?49ba:50)
at eval (react-speech.js?49ba:53)
at webpackUniversalModuleDefinition (react-speech.js?49ba:3)
at eval (react-speech.js?49ba:10)
at Object.<anonymous> (bundle.js:1)
at c (bundle.js:1)
And this is my code:
import React from 'react';
import HttpService from '../services/HttpService';
import WikipediaService from '../services/WikipediaService';
import Speech from 'react-speech';
export default class Wrapper extends React.Component {
constructor(props) {
super(props);
this.httpService = new HttpService();
this.wikipediaService = new WikipediaService(this.httpService);
}
componentDidMount() {
this.wikipediaService.makeSearch()
.then((res) => {
console.log(res, 1);
})
.catch((err) => {
console.log(err);
});
}
render() {
return (
<div>
<h1>This is the wrapper</h1>
<Speech text="Welcome to react speech" />
</div>
);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels