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
import Nerv, { Component } from 'nervjs' class A extends Component { ... }
Chrome下运行正常,在IE 8下运行P抛错new TypeError('Super expression must either be null or a function') 例外被抛出未接住
new TypeError('Super expression must either be null or a function')
一种解决方法:
import Nerv from 'nervjs' class A extends Nerv.Component { ... }
请问是否能从Nerv本身层面解决这个问题?
The text was updated successfully, but these errors were encountered:
应该是 babel 设置的问题, 把 class-properties 的 spec 打开:
class-properties
spec
// .babelrc { "plugins": [ ["transform-class-properties", { "spec": true }] ] }
Sorry, something went wrong.
使用https://github.com/NervJS/nerv-webpack-boilerplate.
"plugins": [ ["@babel/plugin-proposal-class-properties", { "loose": true }], ]
不论loose是否打开 IE8都报错
你的component有super了吗 是component创建失败吧
参考 https://github.com/womendi/nervjs-ie8 package.json中build只写webpack就好,不要加--config *.js
No branches or pull requests
现象
Chrome下运行正常,在IE 8下运行P抛错
new TypeError('Super expression must either be null or a function')
例外被抛出未接住一种解决方法:
请问是否能从Nerv本身层面解决这个问题?
The text was updated successfully, but these errors were encountered: