Я не могу развернуть свой проект angular 8. Я использовал шаблон CodeUI angular, и сборка не удалась при развертывании Heroku. То же самое работает на localhost, но не может сделать сборку на Heroku.
Версии, которые я использую:
- Angular CLI: 8.3.6
- Узел: 10.16.0
- Angular: 8.2.8
Ошибка ниже:
Build
Detected both "build" and "heroku-postbuild" scripts
Running heroku-postbuild
HireCommit@2.5.2 heroku-postbuild /tmp/build_434f7be8a26abfc4235d95846f4eafd0
g build --aot --prod
Date: 2020-02-10T11:18:59.393Z
Hash: 753b3b69ed4e240fe2ea
Time: 52490ms
chunk {0} runtime.741402d1d47331ce975c.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} main.4af9b61479361f268d39.js (main) 128 bytes [initial] [rendered]
ERROR in node_modules/@coreui/angular/lib/sidebar/app-sidebar.component.d.ts(13,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@coreui/angular/lib/sidebar/app-sidebar.component.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@coreui/angular/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.d.ts(11,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@coreui/angular/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.d.ts(12,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@coreui/angular/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.d.ts(15,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@coreui/angular/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.d.ts(16,9): error TS1086: An accessor cannot be declared in an ambient context.
chunk {2} polyfills.d64fff5b0a45205ed7b5.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} polyfills-es5.7f9896f05667ed1b2b2b.js (polyfills-es5) 68.1 kB [initial] [rendered]
chunk {4} styles.f9d3d53855388a7c759d.css (styles) 578 kB [initial] [rendered]
chunk {scripts} scripts.b59d910a7125cd182ed3.js (scripts) 471 kB [entry] [rendered]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! HireCommit@2.5.2 heroku-postbuild: `ng build --aot --prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the HireCommit@2.5.2 heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.u9GWJ/_logs/2020-02-10T11_18_59_473Z-debug.log
Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
Вы можете найти мой пакет. json здесь