Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引入样式文件报错 #47

Open
haoyinag opened this issue Sep 5, 2019 · 2 comments
Open

引入样式文件报错 #47

haoyinag opened this issue Sep 5, 2019 · 2 comments

Comments

@haoyinag
Copy link

haoyinag commented Sep 5, 2019

import 'lib/chimee-mobile-player.browser.css';
import ChimeeMobilePlayer from 'chimee-mobile-player';

编译报错:
This dependency was not found:

  • lib/chimee-mobile-player.browser.css in ./src/pages/WatchBaby/index.tsx

To install it, you can run: npm install --save lib/chimee-mobile-player.browser.css

@toxic-johann
Copy link
Member

你跑的是什么版本?引入的是哪个 js 文件。需要跟踪一下。目测是你那个版本里面有 import css 的逻辑。你试试更新到最新的版本试试。

@haoyinag
Copy link
Author

@toxic-johann
跟版本有关系?
官方引入方式是:import 'lib/chimee-mobile-player.browser.css';
我这样引入就对了:import 'chimee-mobile-player/lib/chimee-mobile-player.browser.css';

另外,我这边是在H5做的直播m3u8,希望尽量完善一下文档,比如兼容、比如实例销毁、
今晚遇到的问题是IOS动态切换src正常,vivo无效,播的还是上一个有效的src,
其它问题我在另外一个issue有提~
感谢回复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants