我对videojs节点模块有问题

时间:2020-01-27 10:59:25

标签: javascript node-modules video.js

所以我将我的项目从codeandbox(在这里工作)导出到可视代码,现在我对此有问题...。

Module parse failed: Unexpected character '@' (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
> @charset "UTF-8";
| .vjs-modal-dialog .vjs-modal-dialog-content, .video-js .vjs-modal-dialog, .vjs-button > .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
|   position: absolute;
 @ ./src/Components/Work/videojs.js 3:0-36
 @ ./src/Components/Work/Video.js
 @ ./src/Components/Work/index.js
´´´

I already install from npm all the dependencies that i have in codesandbox.
glad if anyone can answer this 

1 个答案:

答案 0 :(得分:0)

路径错误:

import "video.js/dist/video-js.css";

您需要提供完整路径:

import "/node-modules/video.js/dist/video-js.css";