我正在尝试使用以下命令部署到Angular SSR:
npm运行build:ssr && npm运行serve:ssr
出现以下错误:
/Users/******/Documents/******/******/client/dist/server/main.js:216237
$.fn.emulateTransitionEnd = transitionEndEmulator;
^
TypeError: Cannot set property 'emulateTransitionEnd' of undefined
at setTransitionEndSupport (/Users/******/Documents/******/******/client/dist/server/main.js:216237:31)
at /Users/******/Documents/******/******/client/dist/server/main.js:216340:3
at SYky (/Users/******/Documents/******/******/client/dist/server/main.js:216124:11)
at Object.SYky (/Users/******/Documents/******/******/client/dist/server/main.js:216126:2)
at __webpack_require__ (/Users/******/Documents/******/******/client/dist/server/main.js:20:30)
at Object.Sy1n (/Users/******/Documents/******/******/client/dist/server/main.js:220995:1)
at __webpack_require__ (/Users/******/Documents/******/******/client/dist/server/main.js:20:30)
at Object.V7fC (/Users/******/Documents/******/******/client/dist/server/main.js:224068:33)
at __webpack_require__ (/Users/******/Documents/******/******/client/dist/server/main.js:20:30)
at Object.K011 (/Users/******/Documents/******/******/client/dist/server/main.js:153770:37)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ndi-api-upgrade@0.0.0 serve:ssr: `node dist/server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ndi-api-upgrade@0.0.0 serve:ssr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
我正在使用以下软件包依赖项版本:
"dependencies": {
"@ng-bootstrap/ng-bootstrap": "^5.1.1",
"@nguniversal/express-engine": "^8.1.1",
"bootstrap": "^4.3.1",
"jquery": "^3.4.1",
"webpack": "^4.41.2"
}
"devDependencies": {
"@angular/cli": "~8.3.6",
"@angular/compiler-cli": "~8.2.8",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.8.2"
}
感谢您的帮助!