小编Bip*_*lab的帖子

模块解析失败:意外的标记 (4:0)

我正在尝试将 FULLCALENDAR 添加到我的 Angular v14 项目中。

但在所有设置之后我突然面临这个错误

知道如何处理这个错误吗?

包.json

"@fullcalendar/angular": "^5.11.0",
"@fullcalendar/daygrid": "^5.11.0",
"@fullcalendar/interaction": "^5.11.0",
Run Code Online (Sandbox Code Playgroud)

应用程序模块.ts

...
import { FullCalendarModule } from '@fullcalendar/angular';
import dayGridPlugin from '@fullcalendar/daygrid';
import interactionPlugin from '@fullcalendar/interaction';

FullCalendarModule.registerPlugins([ // register FullCalendar plugins
dayGridPlugin,
interactionPlugin
]);

imports:[
      ...
      FullCalendarModule
     ]
Run Code Online (Sandbox Code Playgroud)

抛出错误

Compiled with problems:X

ERROR in ./node_modules/@fullcalendar/common/main.css 4:0

Module parse failed: Unexpected token (4: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
| …
Run Code Online (Sandbox Code Playgroud)

angular-material angular angular14

5
推荐指数
1
解决办法
4931
查看次数

标签 统计

angular ×1

angular-material ×1

angular14 ×1