We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
resolve(require(filename)) //执行到这句会报错
我做了尝试,
require.cache[targetFile] = null; // 这里把key删除即可解决报错 delete require.cache[targetFile];
我分析是原因只把require的cache对应文件的value置为null,那么key依然存在的,node还是从缓存中读的,所以把key也删除就可以了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述:
问题分析:
问题解决:
我做了尝试,
我分析是原因只把require的cache对应文件的value置为null,那么key依然存在的,node还是从缓存中读的,所以把key也删除就可以了
The text was updated successfully, but these errors were encountered: