[Yarn] Use Yarn to Create an Alternative Import Name of an Installed Library
to of name an create use import library
2023-09-14 08:59:18 时间
In this lesson we'll show how to use yarn to alias the names of same npm libraries but install different versions. This could allow for easy migrating from one library version to an upgraded version.
You can install lib by using Yarn and give the lib an alias name:
yarn add lodash3@npm:lodash^3 // install lodash version 3 yarn add lodash4@npm:lodash^4 // install lodash version 4
Then you can use it:
import lodash3 from 'lodash3'; import lodash4 from 'lodash4';
Note: it only works when you and your team use Yarn, npm won't work.
相关文章
- Oracle函数——TO_DATE[通俗易懂]
- PreferenceActivity_in preference to sth
- ORA-01327: failed to exclusively lock system dictionary as required by build ORACLE 报错 故障修复 远程处理
- ORA-24195: attemp to retrieve the name list of a map message with size exceeding 1024 ORACLE 报错 故障修复 远程处理
- ORA-29251: Index1 is greater than Index2 in call to dbms_sql.bind_array ORACLE 报错 故障修复 远程处理
- ORA-29661: Unable to find the superclass of the defined in the EXTERNAL NAME ORACLE 报错 故障修复 远程处理
- ORA-29663: Unable to find a method that matches one or more of the functions ORACLE 报错 故障修复 远程处理
- ORA-39269: Cannot alter a column of type LONG to anything other than LOB. ORACLE 报错 故障修复 远程处理
- ORA-39914: Index string.string in tablespace string points to subpartition string of table string.string in tablespace string outside of transportable set. ORACLE 报错 故障修复 远程处理
- ORA-41024: Cursor needs to be parsed again ORACLE 报错 故障修复 远程处理
- ORA-47264: error updating Realm Authorization to string for Realm string, string ORACLE 报错 故障修复 远程处理
- ORA-01520: number of data files to add (string) exceeds limit of string ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-010659; Symbol: ER_NDB_BINLOG_CANT_COMMIT_TO_NDB_BINLOG_INDEX; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-010949; Symbol: ER_BASEDIR_SET_TO; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-011659; Symbol: ER_GRP_RPL_FAILED_TO_REGISTER_BINLOG_STATE_OBSERVER; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-09805: conversion of category number to string failed. ORACLE 报错 故障修复 远程处理
- ORA-09876: TASDEF_CLOSE: unable to close ?/dbs/tasdef@.dbf file. ORACLE 报错 故障修复 远程处理
- ORA-09934: Link of current password file to old failed. ORACLE 报错 故障修复 远程处理
- ORA-10568: Failed to allocate recovery state object: out of SGA memory ORACLE 报错 故障修复 远程处理
- ORA-13834: name of SQL profile to be cloned must be provided ORACLE 报错 故障修复 远程处理
- ORA-16643: unable to determine location of broker configuration files ORACLE 报错 故障修复 远程处理
- Ajax.html:35 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org详解编程语言
- Step-by-step FTP to ABAP Proxy详解编程语言
- PHP failed to ptrace(PEEKDATA) pid 13659: Input/output error错误解决方法详解编程语言
- ASSIGN COMPONENT OF STRUCTURE TO .详解leader 2021年06月11日 编程语言 135 0 编程语言
- Unleashing the Power of MySQL: A Comprehensive Guide to UniDAC Integration(unidacmysql)