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
在windows平台下执行npm run dev会报错,看了下.umi下的umi.js文件: 生成的路径不能识别,应该是node中处理windows和linux的路径分隔符不同导致的。 暂时先将umi-plugin-entry.js插件里面的 api.modifyEntryRender(memo => { memo = const rootContainer = window.g_plugins.apply('rootContainer', { initialValue: React.createElement(require('${join(__dirname, "./redux/index")}').default, null, React.createElement(require('./router').default),), });替换成了相对路径:api.modifyEntryRender(memo => { memo = const rootContainer = window.g_plugins.apply('rootContainer', { initialValue: React.createElement(require("../../redux/index").default, null, React.createElement(require('./router').default),), });
api.modifyEntryRender(memo => { memo =
替换成了相对路径:
const rootContainer = window.g_plugins.apply('rootContainer', { initialValue: React.createElement(require("../../redux/index").default, null, React.createElement(require('./router').default),), });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在windows平台下执行npm run dev会报错,看了下.umi下的umi.js文件:
生成的路径不能识别,应该是node中处理windows和linux的路径分隔符不同导致的。
暂时先将umi-plugin-entry.js插件里面的
api.modifyEntryRender(memo => { memo =
const rootContainer = window.g_plugins.apply('rootContainer', {initialValue: React.createElement(require('${join(__dirname, "./redux/index")}').default,
null,
React.createElement(require('./router').default),),
});
替换成了相对路径:
api.modifyEntryRender(memo => {memo =
const rootContainer = window.g_plugins.apply('rootContainer', { initialValue: React.createElement(require("../../redux/index").default, null, React.createElement(require('./router').default),), });
The text was updated successfully, but these errors were encountered: