跟踪子模块中的更改(Tracking changes in submodules)
有没有办法存储对父存储库中的子模块所做的更改? 我正在使用一个我稍微修改过的库(只修改了几行代码)。 如果有替代方案,我宁愿不将整个库检查到我的存储库中。
Is there any way to store changes made to submodules in the parent repository? I'm using a library which I have modified very slightly (just a couple lines of code modified). I'd rather not check the entire library into my repository if there's an alternative.
原文:https://stackoverflow.com/questions/3123104
最满意答案
对于第一个错误,运行带有以下标志的命令...它应该指向您错误:
--display-error-details
似乎只是一个简单的路径问题...确保package.json路径没问题。
对于第二个错误尝试这个:
npm install promise-polyfill --save --save-exact
从这个 github问题得到它
For the first error, run the command with following flag... it should point you to the error:
--display-error-details
Seems like just a simple path issue... Make sure package.json paths are ok.
For second error try this:
npm install promise-polyfill --save --save-exact
Got it from this github issue
相关问答
更多-
当你不再持有对它的引用时,ES6-Promise会发生什么?(What happens to an ES6-Promise when you no longer hold a reference to it?)[2023-02-18]
Promise是否在上述情况下被垃圾收集? 是。 在这方面,promise对象就像其他所有对象一样。 某些实现(Firefox)确实有特殊行为,其中未处理拒绝检测依赖于垃圾收集,但这并没有真正改变有关正在收集的promise对象的任何内容。 Does a Promise get garbage-collected in the above situation? Yes. A promise object is just like every other object in that regard. Some ... -
执行webpack.config时出错 - 无法解析'es6-promise'(Error when executing webpack.config - Can't resolve 'es6-promise')[2022-06-15]
对于第一个错误,运行带有以下标志的命令...它应该指向您错误: --display-error-details 似乎只是一个简单的路径问题...确保package.json路径没问题。 对于第二个错误尝试这个: npm install promise-polyfill --save --save-exact 从这个 github问题得到它 For the first error, run the command with following flag... it should point you to ... -
我认为问题是几个功能立即开始,而不仅仅是在前面的步骤完成之后。 假设这个调用链: updatePosition(organizationId, positionId, positionTitle) .then(unLinkUserToPosition(positionId)) .then(linkUserToPosition(positionId, positionUserId)) .then(getPositionAndCommittees(positionId)) .then(send.success( ...
-
不,它只是意味着es6-promise软件包是独立的,不依赖于任何其他软件包。 您可以使用以下命令列出已安装的包 $ typings ll └── es6-promise 并确保它是你所期望的。 No, it simply means that the es6-promise package is stand-alone and does not depend on any other package. You can list your installed packages ...
-
Webpack配置问题(Webpack config issue)[2023-11-21]
使用webpack-node-externals模块停止webpack加载节点模块以摆脱Critical dependency: the request of a dependency is an expression 然后安装导致模块解析失败的json-loader : var nodeExternals = require('webpack-node-externals'); module.exports = { entry: './main.js', output: { filename ... -
使用webpack.config和babelrc文件传播对象(Getting object spread to work with webpack.config and babelrc files)[2022-02-13]
你在.babelrc和webpack.config列出你的预设,试着把它全部移到其中只有一个,即只有.babelrc : { "presets": ["es2015", "react"], "plugins": ["transform-object-rest-spread"] } 编辑:而不是使用现已弃用的es2015预设安装env预设npm install --save-dev babel-preset-env和es2015用env替换es2015 。 编辑2:你正在使用的…使用了一些不 ... -
我在main.js上面有以下行: require('es6-promise').polyfill() 您可以在vue-hackernews-2.0中看到它的其他变体: import 'es6-promise/auto' I have following line on top of my main.js: require('es6-promise').polyfill() other variant of it's use you can see in vue-hackernews-2.0 here: ...
-
这是最新的webpack版本的问题。 尝试在shell中使用大写驱动器号,例如C:/而不是c:/ 。 更多信息https://github.com/webpack/webpack/issues/4530 。 That's an issue with the latest webpack version. Try using uppercase drive letters in shell, e.g. C:/ instead c:/. More info https://github.com/webpack/ ...
-
需要帮助修复webpack.config与相对/绝对路径(Need help fixing webpack.config with relative/absolute paths)[2023-09-21]
file-loader遵循output.publicPath ,因为你没有设置它,它使用相对于output.path的路径,并且在使用不同的路由时不起作用。 要修复它,只需将公共路径设置为/ : output: { path: path.join(__dirname, "src"), filename: 'bundle-hot.js', publicPath: '/' }, 如果你不想设置output.publicPath , file-loader也有一个选项publicPath ,因为它也 ... -
如何在使用Aurelia-Webpack插件时包含ES6 Promise?(How to include an ES6 Promise when using the Aurelia-Webpack plugin?)[2022-01-17]
ES6应用程序通常的做法是包含polyfill(例如core-js )。 这应该在每个应用程序之前尽早完成,在其他库之前: import 'core-js/es6'; 考虑到已经使用了aurelia-polyfills ,可以选择性地包含polyfill以避免与aurelia-polyfills碰撞: import 'core-js/es6/promise'; import 'core-js/es6/function'; ... The usual thing for ES6 apps is to ha ...