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
异常出现在create-react-app + react-app-rewired中使用时,求指导。
module.exports = function override(config, env) { // do stuff with the webpack config... config.resolve = config.resolve || {}; config.resolve.alias = config.resolve.alias || {}; config.resolve.alias['react'] = 'qreact/dist/ReactIE'; config.resolve.alias['react-dom'] = 'qreact/dist/ReactIE'; config.resolve.alias['prop-types'] = 'qreact/lib/ReactPropTypes'; config.resolve.alias['create-react-class'] = 'qreact/lib/createClass'; config.resolve.alias['react-tap-event-plugin'] = 'qreact/lib/injectTapEventPlugin.js'; return config; };
require('es5-shim/es5-sham'); const React = require('react'); const ReactDOM = require('react-dom'); const App = require('./App'); //const registerServiceWorker = require('./registerServiceWorker'); ReactDOM.render(<App />, document.getElementById('root')); //registerServiceWorker();```
The text was updated successfully, but these errors were encountered:
这个问题好像是因为.babelrc文件没启用造成的。我修改如下后可以了,但是目前在IE8下出现“缺少标识符”问题。。
const { getBabelLoader, injectBabelPlugin } = require('react-app-rewired'); module.exports = function override(config, env) { // do stuff with the webpack config... config.resolve = config.resolve || {}; config.resolve.alias = config.resolve.alias || {}; config.resolve.alias['react'] = 'qreact/dist/ReactIE'; config.resolve.alias['react-dom'] = 'qreact/dist/ReactIE'; config.resolve.alias['prop-types'] = 'qreact/lib/ReactPropTypes'; config.resolve.alias['create-react-class'] = 'qreact/lib/createClass'; config.resolve.alias['react-tap-event-plugin'] = 'qreact/lib/injectTapEventPlugin.js'; getBabelLoader.call(injectBabelPlugin, config.module.rules).options.babelrc = true return config; };
Sorry, something went wrong.
不知道Qreact支不支持typescript
No branches or pull requests
异常出现在create-react-app + react-app-rewired中使用时,求指导。
The text was updated successfully, but these errors were encountered: