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
react项目通过 import artTemplate from "art-template" 引入异常 #638
Comments
|
我用 TypeScript 是 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
react版本: ^16.13.1
通过 import artTemplate from "art-template" 引入异常,定位代码
const template = require('./lib/index');
const extension = require('./lib/extension');
template.extension = extension;
require.extensions[template.defaults.extname] = extension;
module.exports = template;
编译器提示require.extensions 已废弃,通过console打印require.extensions 为 undefined
The text was updated successfully, but these errors were encountered: