当前位置:网站首页>Error in created hook: "referenceerror:" promise "undefined“
Error in created hook: "referenceerror:" promise "undefined“
2022-04-23 17:43:00 【Front Thoughts】
In the beginning, I used VUE3、 After all, I haven't learned VUE3, Then get the project and start directly , It's done !!! So here comes the question ,IE The browser has nothing ! Later I checked , original VUE3 Give up directly IE 了 , Split !!! Decisively turn to VUE2! It hurts after moving ! Report this error again ! also IE8 Following VUE2 It won't come out of the page !
Solution :
install web-pack-server :npm install --save-dev webpack-server
install babel-polyfill rely on : npm install --save babel-polyfill
main.js introduce : import ‘babel-polyfill’
stay webpack.base.conf.js Join in require(“babel-polyfill”)
analysis : In fact, it is an error reported by the kernel , First, locate the browser compatibility problem ,promise Callback not supported ,promise yes ES6 New features , in other words IE The kernel version is right es6 Compatibility is not friendly , Demotion is required to resolve !
版权声明
本文为[Front Thoughts]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230551156807.html
边栏推荐
- Kubernetes 服务发现 监控Endpoints
- JS failed to change all variables and changed to the return method. Finally, the problem was solved
- Using quartz under. Net core - calendar of [6] jobs and triggers
- 干货 | 快速抽取缩略图是怎么练成的?
- Manually implement simple promise and its basic functions
- 958. 二叉树的完全性检验
- Type judgment in [untitled] JS
- tidb-server 的配置文件在哪里?
- 关于gcc输出typeid完整名的方法
- uni-app黑马优购项目学习记录(下)
猜你喜欢
STM32 entry development board choose wildfire or punctual atom?
Exercise: even sum, threshold segmentation and difference (two basic questions of list object)
48. Rotate image
QT modification UI does not take effect
.Net Core3. 1 use razorengine NETCORE production entity generator (MVC web version)
Learning record of uni app dark horse yougou project (Part 2)
394. 字符串解码-辅助栈
Advantages and disadvantages of several note taking software
Matlab / Simulink simulation of double closed loop DC speed regulation system
Index: teach you index from zero basis to proficient use
随机推荐
92. Reverse linked list II byte skipping high frequency question
MySQL进阶之索引【分类,性能分析,使用,设计原则】
tidb-server 的配置文件在哪里?
双指针进阶--leetcode题目--盛最多水的容器
Halo 开源项目学习(二):实体类与数据表
2022年流动式起重机司机国家题库模拟考试平台操作
Manually implement simple promise and its basic functions
Open futures, open an account, cloud security or trust the software of futures companies?
Double pointer advanced -- leetcode title -- container with the most water
MySQL installation
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
48. Rotate image
Generating access keys using JSON webtoken
01-初识sketch-sketch优势
This point in JS
Commonly used functions -- spineros:: and spineros::)
Qt 修改UI没有生效
为什么有些人说单片机简单,我学起来这么吃力?
剑指 Offer 03. 数组中重复的数字
开期货,开户云安全还是相信期货公司的软件?