因此,我将我的项目从codesandbox (在那里可以工作)导出为可视化代码,现在我使用这个...´遇到了问题。
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 发布于 2020-01-27 20:43:51
路径是错误的:
import "video.js/dist/video-js.css";您需要提供完整路径:
import "/node-modules/video.js/dist/video-js.css";https://stackoverflow.com/questions/59929799
复制相似问题