首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我有一个关于videojs node-modules的问题。

我有一个关于videojs node-modules的问题。
EN

Stack Overflow用户
提问于 2020-01-27 18:59:26
回答 1查看 394关注 0票数 0

因此,我将我的项目从codesandbox (在那里可以工作)导出为可视化代码,现在我使用这个...´遇到了问题。

代码语言:javascript
复制
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 
EN

回答 1

Stack Overflow用户

发布于 2020-01-27 20:43:51

路径是错误的:

代码语言:javascript
复制
import "video.js/dist/video-js.css";

您需要提供完整路径:

代码语言:javascript
复制
import "/node-modules/video.js/dist/video-js.css";
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59929799

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档