gpt4 book ai didi

angular - 在 Jhipster Angular 项目中设置 Fullcalendar

转载 作者:行者123 更新时间:2023-12-05 03:49:09 25 4
gpt4 key购买 nike

我正在尝试将 Fullcalendar 添加到 Jhipster(6.10.3) 和 angular 10 项目

在 Angular Cli 中,一切都按预期工作

关于如何让它与 一起工作的想法?

Package.json :

"@fullcalendar/angular": "^5.3.1",
"@fullcalendar/core": "^5.3.1",
"@fullcalendar/daygrid": "^5.3.2",
"@fullcalendar/interaction": "^5.3.1",
"@fullcalendar/list": "^5.3.1",
"@fullcalendar/timegrid": "^5.3.1",

堆栈跟踪:

ERROR in ./node_modules/@fullcalendar/common/main.css 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> .fc-not-allowed,
| .fc-not-allowed .fc-event { /* override events' custom cursors */
| cursor: not-allowed;

ERROR in ./node_modules/@fullcalendar/daygrid/main.css 2:0
Module parse failed: Unexpected token (2:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
> :root {
| --fc-daygrid-event-dot-width: 8px;
| }

ERROR in ./node_modules/@fullcalendar/list/main.css 2:0
Module parse failed: Unexpected token (2:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
> :root {
| --fc-list-event-dot-width: 10px;
| --fc-list-event-hover-bg-color: #f5f5f5;

ERROR in ./node_modules/@fullcalendar/timegrid/main.css 6:0
Module parse failed: Unexpected token (6:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| */
|
> .fc-v-event { /* allowed to be top-level */
| display: block;
| border: 1px solid #3788d8;
i 「wdm」: Failed to compile.

谢谢

最佳答案

我认为现在是这样:

我在 webpack.dev.js 中添加了一个加载器

 {
test: /\.css$/i,
use: [
'handlebars-loader', // handlebars loader expects raw resource string
'extract-loader',
'css-loader',
],
},

然后必须安装:

npm i handlebars-loader --save
npm i extract-loader --save
npm install --save handlebars

我还必须将其添加到 content/scss/vendor.scss:

@import '~@fullcalendar/common/main.css';
@import '~@fullcalendar/daygrid/main.css';

关于angular - 在 Jhipster Angular 项目中设置 Fullcalendar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64094404/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com