我终于可以在Meteor上使用SSR,但是当我使用fourseven:scss
添加Bootstrap和我的SCSS文件时,应用程序将失败。我似乎遇到了多个错误,但现在无法克服的错误是:
TypeError: Cannot set property 'emulateTransitionEnd' of undefined
路径:ui/layouts/App.jsx
import $ from 'jquery';
import Popper from 'popper.js';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import { Meteor } from 'meteor/meteor';
import React from 'react';
import PropTypes from 'prop-types';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import Login from '../pages/login/Login';
const Index = () => <h1>Home page.</h1>;
const App = ({ initialState }) => {
console.log('initialState', initialState);
return (
<div className="application">
<Helmet>
<meta charSet="utf-8" />
<title>{Meteor.settings.public.companyName}</title>
<link rel="canonical" href={Meteor.settings.public.href} />
</Helmet>
<Switch>
<Route path="/" exact component={Index} public />
<Route path="/login" exact component={Login} />
</Switch>
</div>
);
};