core-js

npm运行项目报错----Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

醉酒当歌 提交于 2020-07-26 06:14:12
第一种方法: package.json中devDependencies对象添加 "@babel/compat-data": "7.9.0" 第二种方法: npm install -D babel-loader @babel/core @babel/preset-env webpack 再启动 来源: oschina 链接: https://my.oschina.net/u/4301161/blog/4326069

kotlin multiplatform + react

南楼画角 提交于 2020-07-10 07:30:06
问题 I have a project on kotlin multiplatform and want to use kotlin react for that. Added dependencies to build.gradle: implementation("org.jetbrains:kotlin-react:16.13.0-pre.94-kotlin-1.3.70") implementation("org.jetbrains:kotlin-react-dom:16.13.0-pre.94-kotlin-1.3.70") implementation(npm("react", "16.13.1")) implementation(npm("react-dom", "16.13.1")) however i got a Uncaught ReferenceError: module is not defined in kotlin-react-dom.js and kotlin-react.js i found that it because of core-js,

npm WARN deprecated core-js@2.6.11

亡梦爱人 提交于 2020-05-30 08:00:09
问题 When I enter $ npm install --save react react-dom next , I got this warning: npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. I tried updating it with $ npm install --save core-js@^3 , but it shows the same error. How can I update core? 回答1: npm uninstall core-js then npm i core-js should work. 来源: https://stackoverflow.com/questions/60079846

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues

别说谁变了你拦得住时间么 提交于 2020-05-24 11:59:48
问题 I'm getting below error while creating a new Angular application - npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. I tried the solution given in below link but it did not work for me- Error: Please, upgrade your dependencies to the actual version of core-js@3 When I check version of Angular using 'ng --version' command, I see <error> as

Core-JS 3 Babel results in mini-css-extract-plugin error

笑着哭i 提交于 2020-05-17 07:09:06
问题 Following on from this question I have set up my Webpack 4 config to handle babel-loader like this { module : { rules : [{ test : /\.js$/, // Some module should not be transpiled by Babel // See https://github.com/zloirock/core-js/issues/743#issuecomment-572074215 exclude: ['/node_modules/', /\bcore-js\b/, /\bwebpack\/buildin\b/, /@babel\/runtime-corejs3/], loader : "babel-loader", options : { babelrc : false, // Fixes "TypeError: __webpack_require__(...) is not a function" // https://github

【npm】npm打包丢包core-js,丢失es6.regexp.split.js,丢失es6.regexp.replace问题解决

Deadly 提交于 2020-04-24 09:13:50
问题描述: 前端项目访问,js访问报404 npm打包丢包core-js,丢失es6.regexp.split.js,丢失es6.regexp.replace问题解决 问题解决: 1.重装@babel/polyfill 命令: npm uninstall @babel/polyfill --save && npm install @babel/polyfill --save 2.提交的时候,把es6.regexp.replace 等 core-js下的所有js文件提交,一起打包发布 即可解决 来源: oschina 链接: https://my.oschina.net/u/4353702/blog/3652027

解决npm ERR!Unexpected end of JSON input while paring near (解析附近时JSON输入意外结束)'...."^2.0.0-r...

让人想犯罪 __ 提交于 2020-04-23 08:28:42
摘要    最近更新了一次node,但是更新后npm的命令总是会报 npm WARN deprecated fsevents@2.0.6: Please update: there are crash fixes npm WARN deprecated text-encoding@0.7.0: no longer maintained npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size npm WARN deprecated core-js@2.3.0: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated core-js@1.2.7: core-js@<2

babel知识体系漫谈

核能气质少年 提交于 2020-04-06 02:49:47
钉钉前端团队原创,点击右上角关注我们,了解更多前端技术 作者: 烛象 引言 在JavaScript蓬勃发展的今天,ES6/7、typescript已经成为代码编写的标配。 上一篇文章,我们介绍了钉钉IDL和自动生成typescript定义的工具,本文将会介绍AST相关js知识:babel。 关于babel 一句话阐述什么是babel: babel是一个主要用于将ES2015+版本的代码编译成向下兼容(比如ES5/ES3)js版本的编译器。 // Babel Input: ES2015 arrow function [ 1 , 2 , 3 ].map( ( n ) => n + 1 ); // Babel Output: ES5 equivalent [ 1 , 2 , 3 ].map( function ( n ) { return n + 1 ; }); 复制代码 结合实际使用场景,我们接触到的babel使用方式一般为 .babelrc/babel.config.json (babel配置文件) babel-loader (webpack/rollup等) 然而,.babelrc的每一块配置后面究竟代表着babel怎样的处理方式,这个估计很少有人能讲得清楚。 babel知识体系 1、主要组件 源代码到AST: babel/parser(前身为babylon) 依赖acorn

使用DllPlugin 提取公用库

我的未来我决定 提交于 2020-02-26 19:13:20
不使用dll的时候, vue是直接和应用一起打包的, 每次更新应用, 用户端需要下载所有新的js 优化后, 大小会大一点, 但是每次更新时用户不需要重新下载vue的js, 只需要更新app相关的js 去除map和core-js, 反正唯一的用户是我, 而我只用chrome ~ 安装所需模块 npm i clean-webpack-plugin add-asset-html-webpack-plugin webpack-bundle-analyzer -D 新建配置文件 webpack.dll.config.js const path = require("path"); const webpack = require("webpack"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); // dll文件存放的目录 const dllPath = "public/dll"; module.exports = { entry: { // 需要提取的库文件 vue: [ "vue" // "element-ui" // 这种方式element会被全部打包进去 ] }, output: { path: path.join(__dirname, dllPath), filename: "[name].dll

create-react-app not working in IE11 - Object doesn't support property or method 'entries'

笑着哭i 提交于 2020-02-23 09:43:08
问题 I am creating a project using create-react-app and it works perfectly in Chrome but I cannot get it to work in IE11. Upon launching the app, I am getting the following error from the console: Object doesn't support property or method 'entries' I have spent hours trawling Google trying to find a solution and none of the recommended ones work. Things I have tried: importing react-app-polyfill/ie11 and react-app-polyfill/stable at the top of index.js importing core-js/es/object/entries and core