screenfull加载的时候失败


in ./node_modules/screenfull/index.js

Module parse failed: Unexpected token (55:42)
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
|
| for (const methodList of methodMap) {
> const exitFullscreenMethod = methodList?.[1];
| if (exitFullscreenMethod in document) {
| for (const [index, method] of methodList.entries()) {

 

 

在这里找到解决方法

 

https://github.com/sindresorhus/screenfull/issues/195

 

 

 module.exports = {

// code

transpileDependencies: ['screenfull']

// code }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM